Add GitHub Actions CI configuration

This commit is contained in:
Oliver Davies 2024-05-03 15:21:56 +01:00
parent 216fe30bf5
commit 94415f04ba
2 changed files with 26 additions and 0 deletions

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

@ -0,0 +1,22 @@
name: Run tests
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v26
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/checkout@v4
- run: |
nix develop -c composer install
nix develop -c ./run test

View file

@ -82,4 +82,8 @@ function publish {
git stash pop git stash pop
} }
function test {
./vendor/bin/phpunit "${@}"
}
# vim: ft=bash # vim: ft=bash