aboutsummaryrefslogtreecommitdiffhomepage
path: root/.gitea
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-16 23:18:17 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-17 10:49:43 +0900
commit35505c8a26893cfedd07fc8b0aae962c7b2d82d7 (patch)
tree9f1db4f33c840821400a0e383c93908180645973 /.gitea
parent3f993021f8499767e49a4cad92f82b408fac6e8b (diff)
workflows: invoke nix flake checks
Integration tests are implemented as nix flake checks. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to '.gitea')
-rw-r--r--.gitea/workflows/check.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitea/workflows/check.yml b/.gitea/workflows/check.yml
new file mode 100644
index 00000000..a2380a61
--- /dev/null
+++ b/.gitea/workflows/check.yml
@@ -0,0 +1,26 @@
+name: check
+
+on:
+ - push
+ - pull_request
+
+jobs:
+ tests:
+ name: nix-flake-check
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+
+ - name: Install Nix
+ uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
+ with:
+ # explicitly enable sandbox
+ install_options: --daemon
+ extra_nix_config: |
+ sandbox = true
+ system-features = nixos-test benchmark big-parallel kvm
+ enable_kvm: true
+
+ - name: Run tests
+ run: nix --print-build-logs --experimental-features 'nix-command flakes' flake check --all-systems \ No newline at end of file