Run the root npm test suite only by hand in CI, and run the prose checks on every push and pull request

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
jparkerwebandClaude Sonnet 5.5 committed 2026-11-06 10:18:57 -08:00
1 parent 272e514372
commit f28d4d592a
1 file changed
+7 -7
+7 -7
View File
@@ -19,8 +19,9 @@ concurrency:
# Speed: a pull request runs on Ubuntu only (the cheapest runner) unless it carries the # Speed: a pull request runs on Ubuntu only (the cheapest runner) unless it carries the
# `full-matrix` label; pushes to main and manual runs use all three systems. A change that # `full-matrix` label; pushes to main and manual runs use all three systems. A change that
# touches only the website, the README, the changelog or similar skips the heavy jobs and runs # touches only the website, the README, the changelog or similar skips the heavy `app` job. The
# the fast `prose` job instead, which keeps the checks that read those files. # fast `prose` job runs on every push and pull request. The root `npm test` suite does not run on
# pushes or pull requests at all: run it locally, or start `node-tests` by hand.
jobs: jobs:
changes: changes:
name: changes name: changes
@@ -56,8 +57,6 @@ jobs:
prose: prose:
name: prose checks name: prose checks
needs: changes
if: needs.changes.outputs.code == 'false'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4.2.2 - uses: actions/checkout@v4.2.2
@@ -170,13 +169,14 @@ jobs:
node-tests: node-tests:
name: npm test (${{ matrix.os }}) name: npm test (${{ matrix.os }})
needs: changes # Manual runs only: run `npm test` on the dev machine before pushing. Start this from the
if: needs.changes.outputs.code == 'true' # Actions tab to check all three systems.
if: github.event_name == 'workflow_dispatch'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: ${{ fromJSON(github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'full-matrix') && '["ubuntu-latest"]' || '["windows-latest","macos-latest","ubuntu-latest"]') }} os: [windows-latest, macos-latest, ubuntu-latest]
steps: steps:
- uses: actions/checkout@v4.2.2 - uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.4.0 - uses: actions/setup-node@v4.4.0