File tree Expand file tree Collapse file tree 1 file changed +97
-0
lines changed Expand file tree Collapse file tree 1 file changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ lint :
7
+ runs-on : ubuntu-latest
8
+
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+
12
+ - name : Setup Node.js
13
+ uses : actions/setup-node@v3
14
+ with :
15
+ node-version : 21
16
+
17
+ - name : Install pnpm
18
+ run : |
19
+ corepack enable
20
+ corepack prepare pnpm@latest --activate
21
+
22
+ - name : Install dependencies
23
+ run : pnpm install
24
+
25
+ - name : Lint
26
+ run : pnpm lint
27
+
28
+ typecheck :
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+
34
+ - name : Setup Node.js
35
+ uses : actions/setup-node@v3
36
+ with :
37
+ node-version : 21
38
+
39
+ - name : Install pnpm
40
+ run : |
41
+ corepack enable
42
+ corepack prepare pnpm@latest --activate
43
+
44
+ - name : Install dependencies
45
+ run : |
46
+ pnpm install
47
+ pnpm -r build
48
+
49
+ - name : Typecheck
50
+ run : pnpm typecheck
51
+
52
+ build :
53
+ runs-on : ubuntu-latest
54
+
55
+ steps :
56
+ - uses : actions/checkout@v4
57
+
58
+ - name : Setup Node.js
59
+ uses : actions/setup-node@v3
60
+ with :
61
+ node-version : 21
62
+
63
+ - name : Install pnpm
64
+ run : |
65
+ corepack enable
66
+ corepack prepare pnpm@latest --activate
67
+
68
+ - name : Install dependencies
69
+ run : pnpm install
70
+
71
+ - name : Build
72
+ run : pnpm -C packages/bentocache build
73
+
74
+ tests :
75
+ runs-on : ubuntu-latest
76
+ timeout-minutes : 10
77
+
78
+ steps :
79
+ - uses : actions/checkout@v4
80
+
81
+ - name : Setup Node.js
82
+ uses : actions/setup-node@v4
83
+ with :
84
+ node-version : 21
85
+
86
+ - name : Install pnpm
87
+ run : |
88
+ corepack enable
89
+ corepack prepare pnpm@latest --activate
90
+
91
+ - name : Install dependencies
92
+ run : |
93
+ pnpm install
94
+ pnpm -r build
95
+
96
+ - name : Run tests
97
+ run : FORCE_COLOR=1 pnpm test
You can’t perform that action at this time.
0 commit comments