-
Notifications
You must be signed in to change notification settings - Fork 29
32 lines (32 loc) · 810 Bytes
/
ci.yml
File metadata and controls
32 lines (32 loc) · 810 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
32
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pptr: 17.x.x
- pptr: 20.x.x
- pptr: 21.x.x
- pptr: 22.x.x
steps:
- name: Run git checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run nvm install 20
uses: actions/setup-node@v1
with:
node-version: 20.x
- run: npm install
- run: npm install "puppeteer@${{ matrix.pptr }}"
- run: npm install "@types/puppeteer@${{ matrix.pptr }}" || echo "No types available"
- run: npm run rebuild
- run: npm run test:unit --coverage --runInBand --verbose