Migrate to Dependabot for nix flake updates #612
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: Build/Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-and-test: | |
| name: Build/Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: DeterminateSystems/nix-installer-action@main | |
| - name: Initialize Cachix | |
| uses: cachix/cachix-action@v14 | |
| with: | |
| name: watersucks | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| skipPush: true | |
| - name: Check for compile errors | |
| run: | | |
| nix develop .# -c make | |
| nix develop .# -c make FLAKE=false | |
| - name: Run checks | |
| run: nix develop .# -c make check | |
| - name: Run tests | |
| run: nix develop .# -c make test | |
| - name: Build Nix packages | |
| run: nix build .#{nixos,nixosLegacy} | |
| - name: Build docs | |
| run: nix develop .# -c make gen-docs |