44 pull_request :
55 types : [opened, synchronize, reopened]
66
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.event.pull_request.number }}
9+ cancel-in-progress : true
10+
11+ permissions :
12+ contents : read
13+ pull-requests : write
14+ issues : write
15+
716env :
817 BENCH_DIR : ./benchmarks
918
@@ -69,11 +78,10 @@ jobs:
6978 with :
7079 fetch-depth : 0
7180
72- - name : Install and cache yarn
81+ - name : Setup Node.js
7382 uses : actions/setup-node@v5
7483 with :
75- node-version : ' 22'
76- cache : ' yarn'
84+ node-version : ' 22.17.0'
7785
7886 - name : Install Aztec CLI
7987 run : |
@@ -102,34 +110,21 @@ jobs:
102110 run : |
103111 VERSION=${{ steps.basever.outputs.ver }} aztec-up
104112
113+ - name : Manually tag the aztec version as `latest`
114+ run : |
115+ docker tag aztecprotocol/aztec:${{ steps.basever.outputs.ver }} aztecprotocol/aztec:latest
116+
105117 - name : Start sandbox (BASE, background)
106- run : VERSION=${{ steps.basever.outputs.ver }} aztec start --sandbox &
118+ run : aztec start --sandbox &
107119
108120 - name : Start PXE node (BASE, background)
109121 run : |
110122 VERSION=${{ steps.basever.outputs.ver }} aztec start \
111123 --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
112124 --pxe.proverEnabled false &
113-
114- - name : Cache node_modules (BASE)
115- uses : actions/cache@v4
116- with :
117- path : node_modules
118- key : ${{ runner.os }}-node-modules-${{ steps.basever.outputs.ver }}-${{ hashFiles('yarn.lock') }}
119- restore-keys : |
120- ${{ runner.os }}-node-modules-${{ steps.basever.outputs.ver }}-
121125
122126 - name : Install deps (BASE)
123- run : yarn install --frozen-lockfile
124-
125- - name : Cache Noir compilation artifacts (BASE)
126- id : cache-noir-base
127- uses : actions/cache@v4
128- with :
129- path : |
130- target/
131- src/artifacts/
132- key : ${{ runner.os }}-noir-${{ steps.basever.outputs.ver }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
127+ run : yarn --frozen-lockfile
133128
134129 - name : Compile contracts (BASE)
135130 run : yarn compile
@@ -144,7 +139,7 @@ jobs:
144139 # This is required to avoid the benchmark results being removed by the Checkout PR step
145140 - name : Store base benchmark results
146141 run : |
147- mkdir -p ../benchmarks_base && mv ${{ env.BENCH_DIR }}/* ../benchmarks_base/
142+ mkdir -p ../benchmarks_base && mv ${{ env.BENCH_DIR }}/*.json ../benchmarks_base/
148143
149144 # ──────────────────────────────────────────────────────────────
150145 # 2️⃣ BENCHMARK PR HEAD (github.event.pull_request.head.sha)
@@ -186,11 +181,13 @@ jobs:
186181 run : |
187182 VERSION=${{ steps.prver.outputs.ver }} aztec-up
188183
184+ - name : Manually tag the aztec version as `latest`
185+ run : |
186+ docker tag aztecprotocol/aztec:${{ steps.prver.outputs.ver }} aztecprotocol/aztec:latest
187+
189188 - name : Start sandbox (PR, background)
190189 if : steps.prver.outputs.ver_diff == 'true'
191- run : |
192- VERSION=${{ steps.prver.outputs.ver }} aztec start --sandbox &
193- sleep 60
190+ run : aztec start --sandbox &
194191
195192 - name : Start PXE node (PR, background)
196193 if : steps.prver.outputs.ver_diff == 'true'
@@ -199,28 +196,11 @@ jobs:
199196 --port 8081 --pxe --pxe.nodeUrl=http://localhost:8080/ \
200197 --pxe.proverEnabled false &
201198
202- - name : Clean project from BASE stage
203- run : rm -rf node_modules yarn.lock
204-
205- - name : Cache node_modules (PR)
206- uses : actions/cache@v4
207- with :
208- path : node_modules
209- key : ${{ runner.os }}-node-modules-${{ steps.prver.outputs.ver }}-${{ hashFiles('yarn.lock') }}
210- restore-keys : |
211- ${{ runner.os }}-node-modules-${{ steps.prver.outputs.ver }}-
199+ # - name: Clean project from BASE stage
200+ # run: rm -rf node_modules yarn.lock
212201
213202 - name : Install deps (PR)
214- run : yarn install --frozen-lockfile
215-
216- - name : Cache Noir compilation artifacts (PR)
217- id : cache-noir-pr
218- uses : actions/cache@v4
219- with :
220- path : |
221- target/
222- src/artifacts/
223- key : ${{ runner.os }}-noir-${{ steps.prver.outputs.ver }}-${{ hashFiles('src/nr/**/*', 'Nargo.toml') }}
203+ run : yarn --frozen-lockfile
224204
225205 - name : Compile contracts (PR)
226206 run : yarn compile
0 commit comments