mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-16 04:45:33 -08:00
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:
1 parent
272e514372
commit
f28d4d592a
1 file changed
+7
-7
@@ -19,8 +19,9 @@ concurrency:
|
||||
|
||||
# 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
|
||||
# touches only the website, the README, the changelog or similar skips the heavy jobs and runs
|
||||
# the fast `prose` job instead, which keeps the checks that read those files.
|
||||
# touches only the website, the README, the changelog or similar skips the heavy `app` job. The
|
||||
# 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:
|
||||
changes:
|
||||
name: changes
|
||||
@@ -56,8 +57,6 @@ jobs:
|
||||
|
||||
prose:
|
||||
name: prose checks
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'false'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
@@ -170,13 +169,14 @@ jobs:
|
||||
|
||||
node-tests:
|
||||
name: npm test (${{ matrix.os }})
|
||||
needs: changes
|
||||
if: needs.changes.outputs.code == 'true'
|
||||
# Manual runs only: run `npm test` on the dev machine before pushing. Start this from the
|
||||
# Actions tab to check all three systems.
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
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:
|
||||
- uses: actions/checkout@v4.2.2
|
||||
- uses: actions/setup-node@v4.4.0
|
||||
|
||||
Reference in new issue
Block a user