Skip to content

Commit 0602080

Browse files
committed
test: prefetch docker images
1 parent 50e6aae commit 0602080

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/build-test.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ jobs:
284284
- name: Set integration test contracts image
285285
run: |
286286
echo "INT_TEST_CONTRACTS_IMAGE=ghcr.io/${GITHUB_REPOSITORY_OWNER,,}/chain-sdk-int-test-contracts:v3.2.0-2f747c7-v1.2.5-5975d8f73608" >> "$GITHUB_ENV"
287+
echo "ANVIL_IMAGE=ghcr.io/foundry-rs/foundry:v1.3.1" >> "$GITHUB_ENV"
288+
echo "NITRO_IMAGE=offchainlabs/nitro-node:v3.9.5-66e42c4" >> "$GITHUB_ENV"
287289
288290
- name: Log in to GHCR
289291
uses: docker/login-action@v3
@@ -292,8 +294,20 @@ jobs:
292294
username: ${{ github.actor }}
293295
password: ${{ secrets.GITHUB_TOKEN }}
294296

295-
- name: Load integration test contracts image
296-
run: docker pull "${INT_TEST_CONTRACTS_IMAGE}"
297+
- name: Preload integration test images
298+
run: |
299+
docker pull "${INT_TEST_CONTRACTS_IMAGE}" &
300+
pid_int_test_contracts=$!
301+
302+
docker pull "${ANVIL_IMAGE}" &
303+
pid_anvil=$!
304+
305+
docker pull "${NITRO_IMAGE}" &
306+
pid_nitro=$!
307+
308+
wait "$pid_int_test_contracts"
309+
wait "$pid_anvil"
310+
wait "$pid_nitro"
297311
298312
- name: Setup pnpm
299313
uses: pnpm/action-setup@v4

0 commit comments

Comments
 (0)