diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 00000000..df17f693 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,19 @@ +name: Run checks on code + +on: + push: + branches: [ '!gh-pages' ] + pull_request: + branches: [ '!gh-pages' ] + +jobs: + check: + name: Check that the module is valid + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v19 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix flake check + - run: nix fmt -- -c .