main.yml
This file
Path
.github/workflows/main.yml
36 lines · 1.0 KiB · YAML
Last changed by
Run the browser tests and static checks once in CISindre Sorhusbefore adoptiond93adf8
History of this fileTake it
The walk stopped after 200 commits: lines older than 37fc250 point at it.
Add retry count to `afterResponse` and `beforeError` hooks (#763)Sindre Sorhusbefore adoption37fc250
lines 1–16why, one step back1name: CI2on:3 - push4 - pull_request5jobs:6 test:7 name: Node.js ${{ matrix.node-version }}8 runs-on: macos-latest9 strategy:10 fail-fast: false11 matrix:12 node-version:13 - latest14 - 2415 - 2216 steps:Require Node.js 22Sindre Sorhusbefore adoptionf1da0fc
lines 17–18why, one step back17 - uses: actions/checkout@v618 - uses: actions/setup-node@v6Add retry count to `afterResponse` and `beforeError` hooks (#763)Sindre Sorhusbefore adoption37fc250
lines 19–21why, one step back19 with:20 node-version: ${{ matrix.node-version }}21 - run: npm installRun the browser tests and static checks once in CISindre Sorhusbefore adoptiond93adf8
lines 22–32why, one step back22 - run: npx ava 'test/**' '!test/browser.ts'23 # The browser tests, linting, build, and type checks do not depend on the Node.js version, so they run only once.24 browser:25 name: Browsers and static checks26 runs-on: macos-latest27 steps:28 - uses: actions/checkout@v629 - uses: actions/setup-node@v630 with:31 node-version: latest32 - run: npm installAdd retry count to `afterResponse` and `beforeError` hooks (#763)Sindre Sorhusbefore adoption37fc250
lines 33–34why, one step back33 - name: Install Playwright Browsers34 run: npx playwright install --with-depsRun the browser tests and static checks once in CISindre Sorhusbefore adoptiond93adf8
lines 35–36why, one step back35 # The file argument goes to `ava`, so it must stay the last command in the `test` script.36 - run: npm test -- test/browser.ts