ci: add check step

This commit is contained in:
Gabriel Arazas 2024-11-10 13:16:41 +08:00
parent 9c4ea57cc7
commit c54ffe07b5
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 19 additions and 0 deletions

15
.github/workflows/check.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Check test suite
on:
pull_request:
push:
branches:
- master
jobs:
check:
name: Check outputs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v15
- run: make check

View File

@ -6,6 +6,10 @@ docs-serve:
docs-build:
hugo -s docs/website
.PHONY: check
check:
{ command -v nix > /dev/null && nix flake check; } || { nix-build tests -A configs -A lib; }
# Ideally, this should be done only in the remote CI environment with a certain
# update cadence/rhythm.
.PHONY: update