2727 inputs :
2828 repo :
2929 type : string
30- description : ' GitHub repository to fetch from (default to the current repo)'
30+ description : GitHub repository to fetch from (default to the current repo)
3131 pr_id :
3232 type : number
3333 required : true
34- description : ' The PR to test'
34+ description : The PR to test
3535 commit :
3636 required : true
3737 type : string
38- description : ' The expect HEAD of the PR'
38+ description : The expect HEAD of the PR
3939 category :
4040 required : true
4141 type : string
8888 env :
8989 DISTTYPE : nightly
9090
91-
9291 - name : Upload tarball artifact
9392 if : ${{ github.event_name != 'workflow_dispatch' }}
9493 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -126,7 +125,7 @@ jobs:
126125 tar xzf tarballs/*.tar.gz -C "$RUNNER_TEMP"
127126 echo "TAR_DIR=$RUNNER_TEMP/$(basename tarballs/*.tar.gz .tar.gz)" >> "$GITHUB_ENV"
128127
129- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
128+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130129 if : ${{ github.event_name == 'workflow_dispatch' }}
131130 with :
132131 repository : ${{ inputs.repo || github.repository }}
@@ -142,25 +141,25 @@ jobs:
142141 env :
143142 EXPECTED_SHA : ${{ inputs.commit }}
144143
145- - uses : cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
144+ - uses : cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
146145 with :
147146 extra_nix_config : sandbox = true
148147 github_access_token : ${{ secrets.GITHUB_TOKEN }}
149148
150- - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
149+ - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
151150 with :
152151 name : nodejs
153152 authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
154153
155154 - name : Configure sccache
156- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
155+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
157156 with :
158157 script : |
159158 core.exportVariable('SCCACHE_GHA_VERSION', 'on');
160159 core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on');
161160 core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || '');
162161 core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
163-
162+
164163 - name : Load shell.nix
165164 run : |
166165 ${{ github.event_name == 'workflow_dispatch' &&
@@ -171,6 +170,7 @@ jobs:
171170 - name : Build Node.js ${{ github.event_name == 'workflow_dispatch' && 'on the base commit' || 'and run tests' }}
172171 run : |
173172 nix-shell \
173+ -I nixpkgs=./nixpkgs.nix \
174174 --pure --keep TAR_DIR --keep FLAKY_TESTS \
175175 --keep SCCACHE_GHA_VERSION --keep ACTIONS_CACHE_SERVICE_V2 --keep ACTIONS_RESULTS_URL --keep ACTIONS_RUNTIME_TOKEN \
176176 --arg loadJSBuiltinsDynamically false \
@@ -188,6 +188,7 @@ jobs:
188188 mv out/Release/node base_node
189189 git reset FETCH_HEAD --hard
190190 nix-shell \
191+ -I nixpkgs=./nixpkgs.nix \
191192 --pure \
192193 --arg loadJSBuiltinsDynamically false \
193194 --arg ccache 'null' \
@@ -201,6 +202,7 @@ jobs:
201202 if : ${{ github.event_name == 'workflow_dispatch' }}
202203 run : |
203204 nix-shell \
205+ -I nixpkgs=./nixpkgs.nix \
204206 --pure --keep FILTER \
205207 --arg loadJSBuiltinsDynamically false \
206208 --arg ccache 'null' \
@@ -235,34 +237,35 @@ jobs:
235237 if : ${{ github.event_name == 'workflow_dispatch' }}
236238 runs-on : ubuntu-latest
237239 steps :
238- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
240+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
239241 with :
240242 persist-credentials : false
241243 sparse-checkout : |
242244 benchmark/*.R
243- shell .nix
245+ * .nix
244246 sparse-checkout-cone-mode : false
245247
246248 - name : Download benchmark raw results
247- uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
249+ uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
248250 with :
249251 pattern : csv-*
250- merge-multiple : true
252+ merge-multiple : true
251253 path : raw-results
252254
253- - uses : cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
255+ - uses : cachix/install-nix-action@7be5dee1421f63d07e71ce6e0a9f8a4b07c2a487 # v31.6.1
254256 with :
255257 extra_nix_config : sandbox = true
256258 github_access_token : ${{ secrets.GITHUB_TOKEN }}
257259
258- - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
260+ - uses : cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
259261 with :
260262 name : nodejs
261263 authToken : ${{ secrets.CACHIX_AUTH_TOKEN }}
262264
263265 - name : Benchmark results
264266 run : |
265267 nix-shell \
268+ -I nixpkgs=./nixpkgs.nix \
266269 --pure \
267270 --arg loadJSBuiltinsDynamically false \
268271 --arg ccache 'null' \
0 commit comments