-
Notifications
You must be signed in to change notification settings - Fork 80
74 lines (58 loc) · 1.59 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
# Run quick tests for all Node versions
version-tests:
name: Test Node ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [6, 8, 10, 14]
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: '${{ matrix.node_version }}'
- name: Install
run: |
yarn --ignore-engines
- name: Tests
run: |
yarn test-fast
# Run the full CI suite for the dev Node version. Tests are expected to pass for all
# Node versions, but the build only needs to work for the development version, which
# should match the Volta config in package.json
build-tests:
name: Build Test Node ${{ matrix.node_version }}
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [12]
steps:
- uses: actions/[email protected]
- uses: actions/setup-node@v2
with:
node-version: '${{ matrix.node_version }}'
- name: Install
run: |
yarn --ignore-engines
- name: Build
run: |
yarn docker-boot
yarn build-emscripten
- name: Tests
run: |
yarn lint
yarn test-fast
yarn check-prettier
yarn check-docs
yarn check-tsd
yarn cover
- uses: coverallsapp/github-action@master
with:
path-to-lcov: ./coverage/lcov.info
github-token: ${{ secrets.GITHUB_TOKEN }}