Add Nix flake + GitHub Actions CI and bump to v0.1.0 #3
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
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@v15 | |
| - name: Enable Nix cache | |
| uses: DeterminateSystems/magic-nix-cache-action@v8 | |
| - name: Run formatting and tests in dev shell | |
| run: nix develop --command nix run .#ci |