66 - main
77 pull_request :
88
9+ permissions :
10+ contents : read
11+
12+ concurrency :
13+ group : ci-${{ github.ref }}
14+ cancel-in-progress : true
15+
916jobs :
10- lint :
17+ build :
1118 runs-on : ubuntu-latest
1219
1320 steps :
14- - uses : actions/checkout@v4
21+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+ with :
23+ persist-credentials : false
1524
16- - uses : actions/setup-node@v4
25+ - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
26+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
1727 with :
1828 node-version : 18
1929
20- - run : npm i -g corepack
21-
22- - run : corepack enable
23-
2430 - name : find pnpm cache path
2531 id : cache
26- run : echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
32+ run : echo "path=$(pnpm store path)" >> " $GITHUB_OUTPUT"
2733
28- - uses : actions/cache@v4
34+ - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2935 with :
3036 path : ${{ steps.cache.outputs.path }}
3137 key : v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -35,27 +41,26 @@ jobs:
3541 - name : Install dependencies
3642 run : pnpm install --frozen-lockfile
3743
38- - run : pnpm lint
44+ - run : node --run build
3945
40- typecheck :
46+ lint :
4147 runs-on : ubuntu-latest
4248
4349 steps :
44- - uses : actions/checkout@v4
50+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
51+ with :
52+ persist-credentials : false
4553
46- - uses : actions/setup-node@v4
54+ - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
55+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
4756 with :
4857 node-version : 18
4958
50- - run : npm i -g corepack
51-
52- - run : corepack enable
53-
5459 - name : find pnpm cache path
5560 id : cache
56- run : echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
61+ run : echo "path=$(pnpm store path)" >> " $GITHUB_OUTPUT"
5762
58- - uses : actions/cache@v4
63+ - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
5964 with :
6065 path : ${{ steps.cache.outputs.path }}
6166 key : v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -65,27 +70,26 @@ jobs:
6570 - name : Install dependencies
6671 run : pnpm install --frozen-lockfile
6772
68- - run : pnpm typecheck
73+ - run : node --run lint
6974
70- test :
75+ typecheck :
7176 runs-on : ubuntu-latest
7277
7378 steps :
74- - uses : actions/checkout@v4
75-
76- - uses : actions/setup-node@v4
79+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7780 with :
78- node-version : 18
79-
80- - run : npm i -g corepack
81+ persist-credentials : false
8182
82- - run : corepack enable
83+ - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
84+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
85+ with :
86+ node-version : 20
8387
8488 - name : find pnpm cache path
8589 id : cache
86- run : echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
90+ run : echo "path=$(pnpm store path)" >> " $GITHUB_OUTPUT"
8791
88- - uses : actions/cache@v4
92+ - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
8993 with :
9094 path : ${{ steps.cache.outputs.path }}
9195 key : v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -95,33 +99,26 @@ jobs:
9599 - name : Install dependencies
96100 run : pnpm install --frozen-lockfile
97101
98- - run : pnpm test
102+ - run : node --run typecheck
99103
100- - uses : codecov/codecov-action@v5
101- with :
102- files : node_modules/.coverage/lcov.info
103- fail_ci_if_error : true
104- token : ${{ secrets.CODECOV_TOKEN }}
105-
106- build :
104+ test :
107105 runs-on : ubuntu-latest
108106
109107 steps :
110- - uses : actions/checkout@v4
111-
112- - uses : actions/setup-node@v4
108+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
113109 with :
114- node-version : 18
115-
116- - run : npm i -g corepack
110+ persist-credentials : false
117111
118- - run : corepack enable
112+ - uses : pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
113+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
114+ with :
115+ node-version : 20
119116
120117 - name : find pnpm cache path
121118 id : cache
122- run : echo "path=$(pnpm store path)" >> $GITHUB_OUTPUT
119+ run : echo "path=$(pnpm store path)" >> " $GITHUB_OUTPUT"
123120
124- - uses : actions/cache@v4
121+ - uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
125122 with :
126123 path : ${{ steps.cache.outputs.path }}
127124 key : v1-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -131,4 +128,10 @@ jobs:
131128 - name : Install dependencies
132129 run : pnpm install --frozen-lockfile
133130
134- - run : pnpm build
131+ - run : node --run test
132+
133+ - uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
134+ with :
135+ files : node_modules/.coverage/lcov.info
136+ fail_ci_if_error : true
137+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments