File tree 1 file changed +70
-0
lines changed
1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ jobs :
13
+ lint :
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v3
18
+
19
+ - name : Install pnpm
20
+ uses : pnpm/action-setup@v2
21
+
22
+ - name : Set node
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 18.x
26
+ cache : pnpm
27
+
28
+ - name : Setup
29
+ run : npm i -g @antfu/ni
30
+
31
+ - name : Install
32
+ run : nci
33
+
34
+ - name : Lint
35
+ run : nr lint
36
+
37
+ test :
38
+ runs-on : ubuntu-latest
39
+
40
+ strategy :
41
+ matrix :
42
+ node : [14.x, 16.x, 18.x]
43
+ fail-fast : false
44
+
45
+ steps :
46
+ - uses : actions/checkout@v3
47
+
48
+ - name : Install pnpm
49
+ uses : pnpm/action-setup@v2
50
+
51
+ - name : Set node version to ${{ matrix.node }}
52
+ uses : actions/setup-node@v3
53
+ with :
54
+ node-version : ${{ matrix.node }}
55
+ cache : pnpm
56
+
57
+ - name : Setup
58
+ run : npm i -g @antfu/ni
59
+
60
+ - name : Install
61
+ run : nci
62
+
63
+ - name : Build
64
+ run : nr build
65
+
66
+ - name : Typecheck
67
+ run : nr typecheck
68
+
69
+ - name : Test
70
+ run : pnpm run test
You can’t perform that action at this time.
0 commit comments