From 62fefc8c1efdc2bbff81302afb67e86a25d69c46 Mon Sep 17 00:00:00 2001 From: Alice Khoudli Date: Sat, 16 Nov 2024 22:25:12 +0100 Subject: [PATCH] ci: use microsoft playwright image in e2e tests Signed-off-by: Alice Khoudli --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++------ docker/Dockerfile.playwright-ci | 9 +++++++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 docker/Dockerfile.playwright-ci diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 964e83c77bb..8f2a467dc4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,8 +188,9 @@ jobs: - name: Build dummy test_data and static_assets images run: | echo -e "FROM scratch" > Dockerfile.empty - docker build -t test_data -f Dockerfile.empty . - docker build -t static_assets -f Dockerfile.empty . + docker build -t test_data - &2 + exit 1 + fi + echo "Detected Playwright version: $PLAYWRIGHT_VERSION" + echo "PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION" >> $GITHUB_ENV + + - name: Build Playwright container + run: | + docker build --build-arg PLAYWRIGHT_VERSION=v$PLAYWRIGHT_VERSION \ + --build-arg FRONT_TESTS_IMAGE=${{ fromJSON(needs.build.outputs.stable_tags).front-tests }} \ + -t osrd-playwright:latest \ + -