Skip to content

Commit 0877950

Browse files
committed
Refactor Behat setup to pull Docker images in parallel
Prior to this change, the environment initialization process was sequential, which could lead to longer setup times, exceeding the 5 minute limit. This change modifies the configuration to pull Docker images in parallel, improving the efficiency of the setup process.
1 parent fd66dbb commit 0877950

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/stepup-behat.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ jobs:
2323
path: ${{ steps.composer-cache.outputs.dir }}
2424
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
2525
restore-keys: ${{ runner.os }}-composer-
26-
- name: Init environment
26+
- name: Pull images in parallel
2727
run: |
2828
cd stepup
2929
cp .env.test .env
30+
${DOCKER_COMPOSE} config --images | xargs -P 10 -I {} docker pull {}
31+
- name: Init environment
32+
run: |
33+
cd stepup
3034
cp gateway/surfnet_yubikey.yaml.dist gateway/surfnet_yubikey.yaml
3135
${DOCKER_COMPOSE} up -d
3236
- name: Install composer dependencies on the Behat container

0 commit comments

Comments
 (0)