35 lines (26 loc) · 1.06 KB
/
ci-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
34
35
name: ci-test
on: [ push ]
jobs:
build:
strategy:
fail-fast: false # allow all test to run to the end
matrix:
os: [ ubuntu-latest, windows-latest ] # [ ubuntu-latest, windows-latest, macos-latest ]
node-version: [ 12.x, 13.x ] # TODO: delay test 14.x, wait for: https://github.com/puppeteer/puppeteer/issues/5719
runs-on: ${{ matrix.os }}
steps:
- name: Setup Git repo
uses: actions/checkout@v2 # https://github.com/actions/checkout
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 # https://github.com/actions/setup-node
with:
node-version: ${{ matrix.node-version }}
- name: Log CI info
run: |
echo "system: $(node -p "os.platform() + ' - ' + os.release() + ' [' + os.arch() + ']'")"
echo "node: $(node -v)"
echo "npm: $(npm -v)"
- name: Patch `libgbm1` for `puppeteer@3` # https://github.com/puppeteer/puppeteer/issues/5674
run: sudo apt-get install -y libgbm1
- run: npm ci
- run: npm test