Skip to content

Commit

Permalink
Merge pull request #61 from a-kenji/chore/update-ci
Browse files Browse the repository at this point in the history
ci: init flake check
  • Loading branch information
a-kenji authored Jul 20, 2024
2 parents 20db031 + 05366d7 commit f669a63
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "ci"
on:
workflow_dispatch: # allows manual triggering
pull_request:
branches: [main]
paths-ignore:
- '**.md'
push:
branches: [main]
paths-ignore:
- '**.md'
merge_group:
jobs:
flake-check:
runs-on: ubuntu-latest
environment: cachix
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Nix Flakes doesn't work on shallow clones
- uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: kenji
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: "flake check"
run: nix flake check -Lvv --no-update-lock-file
2 changes: 1 addition & 1 deletion nix/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ _: {
fe
cargoArtifacts
cargoClippy
cargoDeny
# cargoDeny
cargoDoc
cargoTest
cargoTarpaulin
Expand Down

0 comments on commit f669a63

Please sign in to comment.