-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (51 loc) · 1.5 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
name: Test
on:
push:
paths-ignore:
- 'docs/**'
- '*.md'
schedule:
- cron: 0 20 * * *
jobs:
test:
name: test on ${{ matrix.os-release }} node@${{ matrix.node-version }}
runs-on: ${{ matrix.os-release }}
strategy:
matrix:
node-version:
- 20
- 22
os-release:
- ubuntu-latest
- windows-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
persist-credentials: false
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run test --ws
coverage:
name: collect coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
persist-credentials: false
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version-file: package.json
- run: npm ci
- run: npm run test:unit --ws
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
- run: rm -rf coverage
- run: npm run test:integration --ws
- uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration