git » homepage.git » commit d78609e

ci: add Forgejo baseline workflow

author Alan Dipert
2026-09-07 04:00:46 UTC
committer Alan Dipert
2026-09-07 04:00:46 UTC
parent 1ad24ef183ae5c246a7f58eb9d893b26d86ac95e

ci: add Forgejo baseline workflow

.forgejo/workflows/ci.yml +22 -0

diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml
new file mode 100644
index 0000000..10d5c23
--- /dev/null
+++ b/.forgejo/workflows/ci.yml
@@ -0,0 +1,22 @@
+name: CI
+on:
+  push:
+  pull_request:
+jobs:
+  verify:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        env:
+          FORGEJO_TOKEN: ${{ github.token }}
+        run: |
+          set -eu
+          git init .
+          git remote add origin "https://minerva/forgejo/${{ github.repository }}.git"
+          auth=$(printf 'x-access-token:%s' "$FORGEJO_TOKEN" | base64 -w0)
+          git -c http.extraheader="AUTHORIZATION: basic $auth" fetch --depth=1 origin "${{ github.sha }}"
+          git checkout --detach FETCH_HEAD
+      - name: Repository sanity checks
+        run: |
+          test -s README.md || test -s README.org || true
+          git status --short