Add flake checker to CI #33
This file contains 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: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
check: | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "DeterminateSystems/flake-checker-action@main" | |
- uses: "DeterminateSystems/nix-installer-action@main" | |
- uses: "DeterminateSystems/magic-nix-cache-action@main" | |
- name: Flake check | |
run: nix develop --command check | |
- name: Check formatting | |
run: | | |
git ls-files '*.nix' | xargs nix develop --command nixpkgs-fmt --check |