-
Notifications
You must be signed in to change notification settings - Fork 20
33 lines (32 loc) · 1010 Bytes
/
test.yml
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
name: test
on: [pull_request]
jobs:
dev-tools:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test Devs tools, compil and lint
uses: actions/setup-node@v2
- run: npm install
- run: npm build
- run: npm run lint
- run: npm run commit:fake
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
puppeteer-version: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v2
- name: npm test node ${{matrix.node-version}} puppeteer ${{matrix.puppeteer-version}}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm install @types/puppeteer@${{matrix.puppeteer-version}}
if: ${{ matrix.puppeteer-version < 4 }}
- run: npm install @types/puppeteer@3
if: ${{ matrix.puppeteer-version >= 4 }}
- run: npm install puppeteer@${{matrix.puppeteer-version}}
- run: npm test