-
Notifications
You must be signed in to change notification settings - Fork 62
79 lines (75 loc) · 2.4 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
75
76
77
78
79
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
core-contracts,
core-js,
core-modules,
deployer,
spartan-council,
grants-council,
treasury-council,
ambassador-council,
synthetix-governance,
]
include:
- package: core-contracts
coverage-file: packages/core-contracts/coverage.json
- package: core-js
coverage-file: packages/core-js/coverage/lcov.info
- package: core-modules
coverage-file: packages/core-modules/coverage.json
- package: deployer
coverage-file: packages/deployer/coverage/lcov.info
- package: synthetix-main
coverage-file: packages/synthetix-main/coverage.json
- package: spartan-council
coverage-file: packages/spartan-council/coverage.json
- package: grants-council
coverage-file: packages/grants-council/coverage.json
- package: treasury-council
coverage-file: packages/treasury-council/coverage.json
- package: ambassador-council
coverage-file: packages/ambassador-council/coverage.json
- package: synthetix-governance
coverage-file: packages/synthetix-governance/coverage.json
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.8.0"
cache: "npm"
- run: npm ci
- name: Execute tests
run: npm run --workspace=./packages/${{ matrix.package }} coverage
- name: Upload ${{ matrix.package }} coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ${{ matrix.coverage-file }}
flags: ${{ matrix.package }}
test-cli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.8.0"
cache: "npm"
- run: npm ci
- name: Execute tests
run: npm --workspace=./packages/cli test
test-sample:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "16.8.0"
cache: "npm"
- run: npm ci
- run: npm --workspace=./packages/sample-project test