@@ -8,6 +8,10 @@ concurrency: ${{ github.ref }}
88
99jobs :
1010 lint :
11+ strategy :
12+ matrix :
13+ node-version : [20]
14+
1115 name : Lint the code 🕵
1216 runs-on : ubuntu-latest
1317 steps :
@@ -16,13 +20,29 @@ jobs:
1620 with :
1721 fetch-depth : 0
1822
19- - name : Monorepo install
20- uses : ./.github/actions/setup
23+ - name : Install pnpm
24+ uses : pnpm/action-setup@v4
25+ with :
26+ version : 10
27+
28+ - name : Use Node.js ${{ matrix.node-version }}
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : ${{ matrix.node-version }}
32+ cache : ' pnpm'
33+
34+ - name : Install dependencies
35+ shell : bash
36+ run : pnpm install --frozen-lockfile --prefer-offline
2137
2238 - name : Lint the code 🕵
2339 run : pnpm all:lint
2440
2541 test :
42+ strategy :
43+ matrix :
44+ node-version : [20]
45+
2646 name : Run unit tests 🔬
2747 runs-on : ubuntu-latest
2848 steps :
@@ -31,13 +51,29 @@ jobs:
3151 with :
3252 fetch-depth : 0
3353
34- - name : Monorepo install
35- uses : ./.github/actions/setup
54+ - name : Install pnpm
55+ uses : pnpm/action-setup@v4
56+ with :
57+ version : 10
58+
59+ - name : Use Node.js ${{ matrix.node-version }}
60+ uses : actions/setup-node@v4
61+ with :
62+ node-version : ${{ matrix.node-version }}
63+ cache : ' pnpm'
64+
65+ - name : Install dependencies
66+ shell : bash
67+ run : pnpm install --frozen-lockfile --prefer-offline
3668
3769 - name : Run unit tests 🔬
3870 run : pnpm all:test -- --ci --verbose
3971
4072 build :
73+ strategy :
74+ matrix :
75+ node-version : [20]
76+
4177 name : Build code 🛠
4278 runs-on : ubuntu-latest
4379 steps :
4682 with :
4783 fetch-depth : 0
4884
49- - name : Monorepo install
50- uses : ./.github/actions/setup
85+ - name : Install pnpm
86+ uses : pnpm/action-setup@v4
87+ with :
88+ version : 10
89+
90+ - name : Use Node.js ${{ matrix.node-version }}
91+ uses : actions/setup-node@v4
92+ with :
93+ node-version : ${{ matrix.node-version }}
94+ cache : ' pnpm'
95+
96+ - name : Install dependencies
97+ shell : bash
98+ run : pnpm install --frozen-lockfile --prefer-offline
5199
52100 - name : Build code 🛠
53101 run : pnpm all:build
0 commit comments