Add Github workflow for PR checks

This commit is contained in:
Archit Gupta 2023-12-05 22:24:26 -08:00
parent dcb12b6a22
commit 17463db5c0

20
.github/workflows/pr.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: PR checks
on:
pull_request:
jobs:
run-checks:
name: Run checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@master
- run: nix flake check --all-systems
run-tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@master
- run: nix eval .#tests