Skip to content

Commit 484ef24

Browse files
authored
chore: replace travis with github actions (#53)
1 parent 909402c commit 484ef24

File tree

2 files changed

+40
-28
lines changed

2 files changed

+40
-28
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
test:
9+
name: ${{ matrix.name }}
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- pptr: 1.6.x
16+
- pptr: 1.8.x
17+
- pptr: 1.12.x
18+
- pptr: 2.x.x
19+
- pptr: 3.x.x
20+
- pptr: 4.x.x
21+
- pptr: 5.x.x
22+
- pptr: 6.x.x
23+
# We don't support these yet
24+
# - pptr: 7.x.x
25+
# - pptr: latest
26+
steps:
27+
- name: Run git checkout
28+
uses: actions/checkout@v2
29+
with:
30+
fetch-depth: 0
31+
- name: Run nvm install 14
32+
uses: actions/setup-node@v1
33+
with:
34+
node-version: 14.x
35+
- run: npm install
36+
- run: npm install "puppeteer@${{ matrix.pptr }}"
37+
- run: npm install "@types/puppeteer@${{ matrix.pptr }}" || echo "No types available"
38+
- run: npm run rebuild
39+
- run: npm run test:lint
40+
- run: npm run test:unit --coverage --runInBand --verbose

.travis.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)