55 lines (53 loc) · 1.38 KB
/
main.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: dev-builds
on: [push]
jobs:
test-node:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8, 10, 12]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- if: matrix.node-version <= 8
name: setup, build, test (node <= 8)
run: |
npm run ci:node8
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- if: matrix.node-version > 8
name: setup, build, test (node > 8)
run: |
npm run setup
npm run test
npm run test:extras -- --type=issue
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
test-extras:
runs-on: ubuntu-latest
needs: [test-node]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- uses: actions/setup-node@v1
with:
node-version: 10
- name: setup, build
run: |
npm run setup
NODE_ENV=production npm run build
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- name: tests for browser bundles
uses: docker://buildkite/puppeteer:v1.15.0
with:
args: npm run test:extras -- --type=browser
- name: tests for readme examples
run: npm run test:extras -- --type=readme
- name: tests for compiled code
run: npm run test:extras -- --type=compiled