Re-add a test workflow for pull requests

This commit is contained in:
Oliver Davies 2024-09-13 20:09:33 +01:00
parent b9335578b8
commit eeafffe3da
2 changed files with 27 additions and 0 deletions

27
.github/workflows/test.yaml vendored Normal file
View file

@ -0,0 +1,27 @@
---
name: Test and Build
on:
pull_request:
jobs:
test_and_build:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/checkout@v4
- name: Install dependencies
run: ./run ci:install
- name: Run tests
run: ./run ci:test
- name: Generate the website
run: |
./run ci:build
tree output_prod