diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9597146..ebc7c6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Syntax run: | shopt -s globstar - for f in skills/buildnotes/scripts/**/*.mjs dev/**/*.mjs site/*.mjs; do + for f in skills/buildnotes/scripts/**/*.mjs dev/**/*.mjs site/**/*.mjs; do node --check "$f" done @@ -121,6 +121,6 @@ jobs: echo "CHROME_PATH=$bin" >> "$GITHUB_ENV" "$bin" --version - # Node 22 treats a directory argument as a test file. The glob is the same suite Node 20 runs for dev/test/. + # Node 22 treats a directory argument as a test file, so pass the test files by glob. - name: Tests run: node --test dev/test/*.test.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index a8ec7c2..915bc99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -87,6 +87,7 @@ Until the first release, changes are recorded under [Unreleased]. - A hand-drawn SVG in `figure.diagram` fits the column instead of being held at 30rem and scrolling on a phone; `figure.diagram.wide` keeps the 30rem minimum. - `lint.mjs`'s moving-dot warning says why the dot goes under the boxes in a flow, and that a route over a plan can ignore it. - Headless Chrome gets 45 s to start instead of 20, since a busy CI runner starting several at once can take longer. +- CI's syntax check covers `site/promo/build.mjs`; it only globbed the top of `site/`. - `references/visuals.md`: how to hide sticky headers before a capture, and a crop command that honours its offset (`sips -c` crops around the centre). - Plain replaces the template's previous look: Archivo, Newsreader and IBM Plex Mono on a white page, and figures (flows, steps, diagrams) on plain ground between two rules instead of a bordered dot grid.