File tree Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Expand file tree Collapse file tree 1 file changed +79
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ # This action works with pull requests and pushes
4
+ on :
5
+ pull_request :
6
+ push :
7
+ branches :
8
+ - main
9
+
10
+ jobs :
11
+ typescriptCheck :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+ with :
18
+ # Make sure the actual branch is checked out when running on pull requests
19
+ ref : ${{ github.head_ref }}
20
+
21
+ - name : Use Node.js
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 20.x
25
+
26
+ - name : Use pnpm
27
+ uses : pnpm/action-setup@v3
28
+ with :
29
+ version : 8
30
+ run_install : true
31
+
32
+ - name : Typescript check
33
+ run : pnpm ts:check
34
+ lint :
35
+ runs-on : ubuntu-latest
36
+
37
+ steps :
38
+ - name : Checkout
39
+ uses : actions/checkout@v3
40
+ with :
41
+ # Make sure the actual branch is checked out when running on pull requests
42
+ ref : ${{ github.head_ref }}
43
+
44
+ - name : Use Node.js
45
+ uses : actions/setup-node@v3
46
+ with :
47
+ node-version : 20.x
48
+
49
+ - name : Use pnpm
50
+ uses : pnpm/action-setup@v3
51
+ with :
52
+ version : 8
53
+ run_install : true
54
+
55
+ - name : Lint code
56
+ run : pnpm lint
57
+ format :
58
+ runs-on : ubuntu-latest
59
+
60
+ steps :
61
+ - name : Checkout
62
+ uses : actions/checkout@v3
63
+ with :
64
+ # Make sure the actual branch is checked out when running on pull requests
65
+ ref : ${{ github.head_ref }}
66
+
67
+ - name : Use Node.js
68
+ uses : actions/setup-node@v3
69
+ with :
70
+ node-version : 20.x
71
+
72
+ - name : Use pnpm
73
+ uses : pnpm/action-setup@v3
74
+ with :
75
+ version : 8
76
+ run_install : true
77
+
78
+ - name : Prettify code
79
+ run : pnpm format:check
You can’t perform that action at this time.
0 commit comments