Commit 23259b5 1 parent eed5bfb commit 23259b5 Copy full SHA for 23259b5
File tree 1 file changed +41
-14
lines changed
1 file changed +41
-14
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
+
7
8
pull_request :
8
9
branches :
9
10
- main
10
11
11
12
jobs :
12
- build :
13
+ lint :
13
14
runs-on : ubuntu-latest
14
- strategy :
15
- matrix :
16
- node-version : [18, 20]
17
15
steps :
18
- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16
+ - uses : actions/checkout@v4.1.7
19
17
20
- - name : Setup pnpm
18
+ - name : Install pnpm
21
19
uses : pnpm/action-setup@v4
22
20
23
- - name : Setup node
24
- uses : actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
21
+ - name : Set node
22
+ uses : actions/setup-node@v4.0.2
25
23
with :
26
- node-version : ${{ matrix.node-version}}
24
+ node-version : lts/*
27
25
28
- - name : Install dependencies
29
- run : pnpm install
26
+ - name : Install
27
+ run : pnpm install --frozen-lockfile
30
28
31
29
- name : Build
32
30
run : pnpm build
33
31
34
32
- name : Lint
35
33
run : pnpm lint
36
34
37
- - name : Test
38
- run : pnpm test
39
-
40
35
- name : Typecheck
41
36
run : pnpm typecheck
37
+
38
+ test :
39
+ runs-on : ${{ matrix.os }}
40
+
41
+ strategy :
42
+ matrix :
43
+ node : [20, 18]
44
+ os :
45
+ - ubuntu-latest
46
+ - macos-latest
47
+ - windows-latest
48
+ fail-fast : false
49
+
50
+ steps :
51
+ - uses : actions/checkout@v4.1.7
52
+
53
+ - name : Install pnpm
54
+ uses : pnpm/action-setup@v4
55
+
56
+ - name : Set node ${{ matrix.node }}
57
+ uses : actions/setup-node@v4.0.2
58
+ with :
59
+ node-version : ${{ matrix.node }}
60
+
61
+ - name : Install
62
+ run : pnpm install --frozen-lockfile
63
+
64
+ - name : Build
65
+ run : pnpm build
66
+
67
+ - name : Test
68
+ run : pnpm test
You can’t perform that action at this time.
0 commit comments