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