CI runs the browser tests and Playwright install on all three Node versions
test is xo && npm run build && tsc --project tsconfig.test.json && ava, and CI runs it across a three-version Node matrix, with npx playwright install --with-deps in each job.
Measured on run 35139889608, Node 24 job, macos-latest:
npm install 40s
Install Playwright Browsers 27s
npm test 134s
job total 209sFrom that job's log: 1057 tests, of which the browser tests are 113s of AVA's reported time across 59 tests, against 428s for everything else.
The browser tests drive ky in chromium, firefox and webkit, so the runner's Node version is not the variable. The same holds for xo, the build, and the test typecheck. All of it runs three times.
Running the browser tests and the static checks once, with the matrix covering only the Node-side tests, would remove two of the three Playwright installs and two thirds of the browser work.
Happy to send a PR, or to drop it if keeping the workflow identical across your repos is worth more than the minutes.
Source: sindresorhus/ky