ci: add checks

This commit is contained in:
Pedro Alves 2023-02-20 16:23:47 +00:00
parent df7a6500e4
commit 652a507745

19
.github/workflows/check.yml vendored Normal file
View file

@ -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 .