Add GitHub Actions CI configuration
This commit is contained in:
parent
216fe30bf5
commit
94415f04ba
2 changed files with 26 additions and 0 deletions
22
.github/workflows/test.yaml
vendored
Normal file
22
.github/workflows/test.yaml
vendored
Normal 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
|
|
@ -82,4 +82,8 @@ function publish {
|
||||||
git stash pop
|
git stash pop
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function test {
|
||||||
|
./vendor/bin/phpunit "${@}"
|
||||||
|
}
|
||||||
|
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue