File tree 1 file changed +21
-29
lines changed
Filter options
1 file changed +21
-29
lines changed
Original file line number Diff line number Diff line change 1
1
name : ci
2
+
2
3
on :
3
4
push :
4
5
branches :
5
6
- main
6
7
pull_request :
7
8
branches :
8
9
- main
10
+
9
11
jobs :
10
- cache-and-install :
12
+ lint :
11
13
runs-on : ubuntu-latest
12
14
13
15
steps :
14
- - name : Checkout
15
- uses : actions/checkout@v4
16
-
17
- - uses : pnpm/action-setup@v4
18
- name : Install pnpm
19
- with :
20
- run_install : false
21
-
22
- - name : Install Node.js
23
- uses : actions/setup-node@v4
16
+ - uses : actions/checkout@v4
17
+ - run : npm i -g --force corepack && corepack enable
18
+ - uses : actions/setup-node@v4
24
19
with :
25
20
node-version : 20
26
- cache : ' pnpm'
21
+ cache : " pnpm"
27
22
28
- - name : Get pnpm store directory
29
- shell : bash
30
- run : |
31
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
23
+ - run : pnpm build
24
+ - run : pnpm lint
32
25
33
- - uses : actions/cache@v4
34
- name : Setup pnpm cache
35
- with :
36
- path : ${{ env.STORE_PATH }}
37
- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
38
- restore-keys : |
39
- ${{ runner.os }}-pnpm-store-
26
+ test :
27
+ runs-on : ubuntu-latest
40
28
41
- - name : Install dependencies
42
- run : pnpm install
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+ - run : npm i -g --force corepack && corepack enable
32
+ - uses : actions/setup-node@v4
33
+ with :
34
+ node-version : 20
35
+ cache : " pnpm"
43
36
44
- - name : Run Build
45
- run : pnpm build
37
+ - run : pnpm build
46
38
47
- - name : Run unit tests
48
- run : pnpm run test:unit
39
+ - name : Test
40
+ run : pnpm test:unit
You can’t perform that action at this time.
0 commit comments