Skip to content

Commit 45e337c

Browse files
committed
ci: add GitHub Actions workflow running nix flake check
Uses Determinate Systems' nix-installer-action plus magic-nix-cache-action to install Nix and cache builds across runs. Triggers on push and pull_request. The single `nix flake check -L` covers the forgejo VM test, the five keycloak tests (one VM, four nspawn containers), and treefmt formatting. Syntax is standard GitHub Actions / Forgejo-Actions-compatible per CLAUDE.md, so the workflow ports unchanged if hosting moves.
1 parent f43665a commit 45e337c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: DeterminateSystems/nix-installer-action@main
14+
15+
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
17+
- name: nix flake check
18+
run: nix flake check -L

0 commit comments

Comments
 (0)