@@ -17,11 +17,25 @@ jobs:
1717 - name : Checkout
1818 uses : actions/checkout@v4
1919
20+ - name : Setup pnpm
21+ uses : pnpm/action-setup@v4
22+ with :
23+ version : 10.30.3
24+ run_install : false
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version-file : .nvmrc
30+
2031 - name : Install node_modules
2132 uses : OffchainLabs/actions/node-modules/install@main
33+ with :
34+ install-command : pnpm install --frozen-lockfile
35+ cache-key : ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
2236
2337 - name : Run audit
24- run : yarn audit:ci
38+ run : pnpm audit:ci
2539
2640 check-formatting :
2741 name : ' Check Formatting'
@@ -30,11 +44,25 @@ jobs:
3044 - name : Checkout
3145 uses : actions/checkout@v4
3246
47+ - name : Setup pnpm
48+ uses : pnpm/action-setup@v4
49+ with :
50+ version : 10.30.3
51+ run_install : false
52+
53+ - name : Setup Node.js
54+ uses : actions/setup-node@v4
55+ with :
56+ node-version-file : .nvmrc
57+
3358 - name : Install node_modules
3459 uses : OffchainLabs/actions/node-modules/install@main
60+ with :
61+ install-command : pnpm install --frozen-lockfile
62+ cache-key : ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
3563
3664 - name : Check formatting with Prettier
37- run : yarn prettier:check
65+ run : pnpm prettier:check
3866
3967 test-type :
4068 name : Test (Type)
@@ -43,17 +71,31 @@ jobs:
4371 - name : Checkout
4472 uses : actions/checkout@v4
4573
74+ - name : Setup pnpm
75+ uses : pnpm/action-setup@v4
76+ with :
77+ version : 10.30.3
78+ run_install : false
79+
80+ - name : Setup Node.js
81+ uses : actions/setup-node@v4
82+ with :
83+ node-version-file : .nvmrc
84+
4685 - name : Install node_modules
4786 uses : OffchainLabs/actions/node-modules/install@main
87+ with :
88+ install-command : pnpm install --frozen-lockfile
89+ cache-key : ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
4890
4991 - name : Copy .env
5092 run : cp ./.env.example ./.env
5193
5294 - name : Build
53- run : yarn build
95+ run : pnpm build
5496
5597 - name : Test
56- run : yarn test:type
98+ run : pnpm test:type
5799
58100 test-unit :
59101 name : Test (Unit)
@@ -62,17 +104,31 @@ jobs:
62104 - name : Checkout
63105 uses : actions/checkout@v4
64106
107+ - name : Setup pnpm
108+ uses : pnpm/action-setup@v4
109+ with :
110+ version : 10.30.3
111+ run_install : false
112+
113+ - name : Setup Node.js
114+ uses : actions/setup-node@v4
115+ with :
116+ node-version-file : .nvmrc
117+
65118 - name : Install node_modules
66119 uses : OffchainLabs/actions/node-modules/install@main
120+ with :
121+ install-command : pnpm install --frozen-lockfile
122+ cache-key : ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
67123
68124 - name : Copy .env
69125 run : cp ./.env.example ./.env
70126
71127 - name : Build
72- run : yarn build
128+ run : pnpm build
73129
74130 - name : Test
75- run : yarn test:unit
131+ run : pnpm test:unit
76132
77133 test-integration :
78134 name : Test (Integration) - ${{ matrix.config.name }}
@@ -104,8 +160,22 @@ jobs:
104160 - name : Checkout
105161 uses : actions/checkout@v4
106162
163+ - name : Setup pnpm
164+ uses : pnpm/action-setup@v4
165+ with :
166+ version : 10.30.3
167+ run_install : false
168+
169+ - name : Setup Node.js
170+ uses : actions/setup-node@v4
171+ with :
172+ node-version-file : .nvmrc
173+
107174 - name : Install node_modules
108175 uses : OffchainLabs/actions/node-modules/install@main
176+ with :
177+ install-command : pnpm install --frozen-lockfile
178+ cache-key : ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
109179
110180 - name : Set up the local node
111181 uses : OffchainLabs/actions/run-nitro-test-node@feat-simplify
@@ -118,10 +188,10 @@ jobs:
118188 run : cp ./.env.example ./.env
119189
120190 - name : Build
121- run : yarn build
191+ run : pnpm build
122192
123193 - name : Test
124194 run : |
125195 INTEGRATION_TEST_DECIMALS=${{matrix.config.decimals}} \
126196 INTEGRATION_TEST_NITRO_CONTRACTS_BRANCH=${{matrix.config.nitro-contracts-branch}} \
127- yarn test:integration
197+ pnpm test:integration
0 commit comments