Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: init flake check #61

Merged
merged 2 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading