File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - ' **'
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build-and-test :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : write
16
+ actions : read
17
+ checks : write
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+ with :
21
+ fetch-depth : 0
22
+
23
+ - name : Setup Node
24
+ uses : actions/setup-node@v3
25
+ with :
26
+ node-version : 18
27
+
28
+ - name : Setup pnpm
29
+ uses : pnpm/action-setup@v2
30
+ with :
31
+ version : 8.15.5
32
+ run_install : false
33
+
34
+ - name : Get pnpm store directory
35
+ shell : bash
36
+ run : |
37
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38
+
39
+ - name : Cache pnpm dependencies
40
+ uses : actions/cache@v3
41
+ with :
42
+ path : ${{ env.STORE_PATH }}
43
+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
44
+ restore-keys : |
45
+ ${{ runner.os }}-pnpm-store-
46
+
47
+ - name : Install dependencies
48
+ run : pnpm install --frozen-lockfile
49
+
50
+ - name : Typecheck
51
+ run : pnpm typecheck
52
+
53
+ - name : Lint
54
+ run : pnpm lint
55
+
56
+ - name : Build
57
+ run : pnpm build
58
+
59
+ - name : Test
60
+ run : pnpm test
You can’t perform that action at this time.
0 commit comments