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
12345678910111213141516171819202122232425262728293031323334353637name: CIon: - push - pull_requestjobs: test: name: Node.js ${{ matrix.node-version }} runs-on: macos-latest strategy: fail-fast: false matrix: node-version: - latest - 24 - 22 steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node-version }} - run: npm install - run: npx ava 'test/**' '!test/browser.ts' # The browser tests, linting, build, and type checks do not depend on the Node.js version, so they run only once. browser: name: Browsers and static checks runs-on: macos-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: latest - run: npm install - name: Install Playwright Browsers run: npx playwright install --with-deps # The file argument goes to `ava`, so it must stay the last command in the `test` script. - run: npm test -- test/browser.ts