From b55f48bba8d55009e1dd0e8a0ac75e78ce3f0a4d Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Thu, 23 Jul 2026 13:51:48 +0000 Subject: [PATCH] split wpt out of npm test Remove test:wpt from the test:javascript:no-jest script chain so that local 'npm test' no longer runs the slow WPT tests. Keep the test:wpt script available for explicit invocation. In CI, add a separate WPT step to the test-without-intl job so WPT still always runs in CI. The reusable nodejs.yml workflow already had WPT as a separate step, so no change is needed there. --- .github/workflows/ci.yml | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d7f76cb48d..0c36ca5c587 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -166,9 +166,14 @@ jobs: cd ${{ github.workspace }}/test/web-platform-tests/wpt python3 wpt make-hosts-file | sudo tee -a /etc/hosts - - name: Run tests + - name: Run tests (excluding WPT) run: npm run test:javascript:without-intl + - name: Test WPT + run: npm run test:wpt + env: + CI: true + test-without-ssl: name: Test with Node.js ${{ matrix.node-version }} compiled --without-ssl strategy: diff --git a/package.json b/package.json index 2d56e5f9df8..3b5cb4c87aa 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "lint:fix": "eslint --fix --cache", "test": "npm run test:javascript && cross-env NODE_V8_COVERAGE= npm run test:typescript", "test:javascript": "npm run test:javascript:no-jest && npm run test:jest", - "test:javascript:no-jest": "npm run generate-pem && npm run test:unit && npm run test:fetch && npm run test:node-fetch && npm run test:infra && npm run test:cache && npm run test:cache-interceptor && npm run test:interceptors && npm run test:cookies && npm run test:eventsource && npm run test:subresource-integrity && npm run test:wpt && npm run test:websocket && npm run test:node-test && npm run test:cache-tests", + "test:javascript:no-jest": "npm run generate-pem && npm run test:unit && npm run test:fetch && npm run test:node-fetch && npm run test:infra && npm run test:cache && npm run test:cache-interceptor && npm run test:interceptors && npm run test:cookies && npm run test:eventsource && npm run test:subresource-integrity && npm run test:websocket && npm run test:node-test && npm run test:cache-tests", "test:javascript:without-intl": "npm run test:javascript:no-jest", "test:busboy": "borp --timeout 180000 -p \"test/busboy/*.js\"", "test:cache": "borp --timeout 180000 -p \"test/cache/*.js\"",