From e45ad85699dcaee39ebb666d7dc0d7498b474529 Mon Sep 17 00:00:00 2001 From: moshejs Date: Sun, 5 Jul 2026 22:28:42 -0400 Subject: [PATCH] Commit the CI workflow the README badge already references MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .github/workflows/ci.yml existed locally but was never committed, so the CI badge in README.md pointed at a workflow GitHub has never run. Adds the workflow (Node 22, npm test, production static export, output verification) with the test-step label made count-agnostic — the suite has grown from 39 to 47 checks and a hardcoded count goes stale. Co-Authored-By: Claude Fable 5 --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ba0cf90 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + test-and-build: + runs-on: ubuntu-latest + defaults: + run: + working-directory: web + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: web/package-lock.json + - run: npm ci --include=dev + - name: Corpus & register tests + run: npm test + - name: Production build (static export) + run: npm run build + env: + NODE_ENV: production + - name: Verify export output + run: test -f out/index.html && test -f out/gloss-data.json && test -f out/abbreviations/index.html && test -f out/sitemap.xml && echo "out/ verified"