-
Notifications
You must be signed in to change notification settings - Fork 52
35 lines (35 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
35 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: create-playwright CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x, 24.x, 26.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm i -g yarn@1
- run: npm i -g pnpm@10
- run: npm ci
- run: npx playwright install-deps
- run: npm run build
- run: npx tsc --noEmit
- run: npx playwright test --grep-invert yarn-berry
# Note: `yarn init` through corepack pins a stale yarn version into the generated project,
# so install yarn berry directly instead.
# Yarn PnP is broken on Node 22: its loader passes the CommonJS source to Node, and require.cache is undefined.
- if: matrix.node-version != '22.x'
run: npm i -g --force @yarnpkg/cli-dist@4
- if: matrix.node-version != '22.x'
run: npx playwright test --grep yarn-berry