From c54ffe07b509021d21fc5b3bb01ddc86d6b3d3dc Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 10 Nov 2024 13:16:41 +0800 Subject: [PATCH] ci: add check step --- .github/workflows/check.yml | 15 +++++++++++++++ Makefile | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..51529dc --- /dev/null +++ b/.github/workflows/check.yml @@ -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 diff --git a/Makefile b/Makefile index eddb26d..99b8d52 100644 --- a/Makefile +++ b/Makefile @@ -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