Skip to content

Commit f17f931

Browse files
committed
ci(test): initial version
1 parent 070e42e commit f17f931

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test_matrix:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node_version:
15+
- 20
16+
- 22
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js ${{ matrix.node_version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node_version }}
24+
cache: npm
25+
- run: npm ci
26+
- run: npm run test:code
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
needs: test_matrix
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ matrix.node_version }}
36+
cache: npm
37+
- run: npm ci
38+
- run: npm run test:tsc
39+
- run: npm run test:tsd

0 commit comments

Comments
 (0)