From 560be9b0d6e477dc8f6722dcf8ffaf611555a953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Mon, 7 Mar 2022 18:50:17 +0100 Subject: [PATCH] Using parallel build in end to end tests The docker-compose build used in E2E tests was running builds sequentially. This is an attempt to run the builds in parallel to optimize the E2E startup time. Before this commit, the "Start WorkAdventure" step takes 7m11 on GitHub --- .github/workflows/end_to_end_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/end_to_end_tests.yml b/.github/workflows/end_to_end_tests.yml index ad59dfc4..560e1dc3 100644 --- a/.github/workflows/end_to_end_tests.yml +++ b/.github/workflows/end_to_end_tests.yml @@ -23,8 +23,10 @@ jobs: run: npx playwright install --with-deps - name: 'Setup .env file' run: cp .env.template .env + - name: Build WorkAdventure + run: docker-compose -f docker-compose.yaml -f docker-compose.e2e.yml build --parallel - name: Start WorkAdventure - run: docker-compose -f docker-compose.yaml -f docker-compose.e2e.yml up -d --build + run: docker-compose -f docker-compose.yaml -f docker-compose.e2e.yml up -d - name: Wait for environment to Start run: sleep 60 - name: Run Playwright tests