-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.78 KB
/
test.yml
File metadata and controls
65 lines (55 loc) · 1.78 KB
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
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:
- 22
- 24
os-release:
- blacksmith-4vcpu-ubuntu-2404
- blacksmith-4vcpu-windows-2025
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
coverage:
name: collect coverage
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
persist-credentials: false
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version-file: package.json
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test:unit
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unit
# - run: rm -rf coverage
# - run: pnpm test:integration
# - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: integration