-
Notifications
You must be signed in to change notification settings - Fork 50
31 lines (31 loc) · 855 Bytes
/
ci.yml
File metadata and controls
31 lines (31 loc) · 855 Bytes
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
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: [18.x, 20.x, 22.x, 24.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
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
- run: corepack enable
- run: corepack prepare yarn@4 --activate
- run: npx playwright test --grep yarn-berry