forked from microsoft/create-playwright
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 720 Bytes
/
ci.yml
File metadata and controls
29 lines (29 loc) · 720 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
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]
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@latest
- run: npm i -g yarn@1
- run: npm i -g pnpm@8
- run: npm ci
- run: npx playwright install-deps
- run: npm run build
- run: npx tsc --noEmit
- run: npm run test