ci: run tests

This commit is contained in:
Oliver Davies 2023-11-06 01:17:53 +00:00
parent 1c5eac72bb
commit 175d63950a
2 changed files with 29 additions and 0 deletions

24
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: CI
on:
push:
branches:
- main
paths-ignore:
- "README.md"
schedule:
- cron: "0 12 15 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac # v22
with:
nix_path: nixpkgs=channel:nixos-23.05
- run: |
./run ci:test

5
run
View file

@ -32,6 +32,11 @@ function build {
# TODO: build a Nix derivation and add it to the store.
}
function ci:test {
nix develop --command composer install
nix develop --command phpunit
}
# Display a list of all available commands.
function help {
printf "%s <task> [args]\n\nTasks:\n" "${0}"