mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 13:57:33 +00:00
ci: run tests
This commit is contained in:
parent
1c5eac72bb
commit
175d63950a
24
.github/workflows/ci.yml
vendored
Normal file
24
.github/workflows/ci.yml
vendored
Normal 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
5
run
|
@ -32,6 +32,11 @@ function build {
|
||||||
# TODO: build a Nix derivation and add it to the store.
|
# 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.
|
# Display a list of all available commands.
|
||||||
function help {
|
function help {
|
||||||
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
printf "%s <task> [args]\n\nTasks:\n" "${0}"
|
||||||
|
|
Loading…
Reference in a new issue