feat(wip): use crane for CI/devshell #191
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| name: Test | |
| jobs: | |
| test: | |
| name: Lint and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| name: Checkout 🛎️ | |
| with: | |
| persist-credentials: false | |
| - uses: nixbuild/nix-quick-install-action@1f095fee853b33114486cfdeae62fa099cda35a9 # v33 | |
| with: | |
| nix_conf: | | |
| keep-env-derivations = true | |
| keep-outputs = true | |
| - name: Restore and save Nix store | |
| uses: nix-community/cache-nix-action@v6 | |
| with: | |
| # restore and save a cache using this key | |
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | |
| # if there's no cache hit, restore a cache by this prefix | |
| restore-prefixes-first-match: nix-${{ runner.os }}- | |
| gc-max-store-size-linux: 1G | |
| purge: true | |
| purge-prefixes: nix-${{ runner.os }}- | |
| # created more than this number of seconds ago | |
| purge-created: 0 | |
| # or last accessed this duration (ISO 8601 duration format) | |
| # before the start of the `Post Restore and save Nix store` phase | |
| purge-last-accessed: P1DT12H | |
| # except any version with the key that is the same as the `primary-key` | |
| purge-primary-key: never | |
| - name: Run all checks | |
| run: nix flake check --verbose |