From 7816eca81ca771924641cf43fe62292a2723a900 Mon Sep 17 00:00:00 2001 From: Oreofe Date: Sat, 29 Aug 2026 17:23:26 +0100 Subject: [PATCH] ci: build the site on every PR The only workflow here deployed on push to main, so a page that broke the export was found after it landed rather than on the PR. Runs the same `npx markline export` the deploy uses, so CI validates exactly what ships. Verified locally: `npm install && npx markline export` succeeds on main. --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..6fb4f74 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +permissions: + contents: read + +jobs: + build: + name: Build site + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - run: npm install + + # Same command the deploy workflow runs, so a page that breaks the + # export is caught on the PR rather than after it lands on main. + # MARKLINE_AI_KEY is unset here; the export skips AI suggestions + # gracefully without it. + - run: npx markline export