From 130ed02627b619293f691a6f44cb74bf11936370 Mon Sep 17 00:00:00 2001 From: Hannes Michalek Date: Mon, 16 Dec 2024 14:31:08 +0100 Subject: [PATCH] Try playwright container --- .github/workflows/frontend-jobs.yml | 31 ++++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/frontend-jobs.yml b/.github/workflows/frontend-jobs.yml index 7642329..8aacb0c 100644 --- a/.github/workflows/frontend-jobs.yml +++ b/.github/workflows/frontend-jobs.yml @@ -110,6 +110,9 @@ jobs: e2e-tests-frontend: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:v1.49.1-noble + options: --user 1001 steps: - uses: actions/checkout@v4 - name: Setup Node @@ -130,20 +133,20 @@ jobs: run: | npm ci working-directory: ./frontend - - name: Get Playwright version - working-directory: ./frontend - run: echo "PLAYWRIGHT_VERSION=$(jq -r '.packages["node_modules/@playwright/test"].version' package-lock.json)" >> $GITHUB_ENV - - name: Cache browser binaries - id: cache-browser-binaries - uses: actions/cache@v4 - with: - path: ~/.cache/ms-playwright - key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} - - name: Install playwright browsers - # this does not work - some libraries are missing when executing playwright - #if: steps.cache-browser-binaries.outputs.cache-hit != 'true' - run: | - npx playwright install --with-deps chromium firefox webkit + # - name: Get Playwright version + # working-directory: ./frontend + # run: echo "PLAYWRIGHT_VERSION=$(jq -r '.packages["node_modules/@playwright/test"].version' package-lock.json)" >> $GITHUB_ENV + # - name: Cache browser binaries + # id: cache-browser-binaries + # uses: actions/cache@v4 + # with: + # path: ~/.cache/ms-playwright + # key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }} + # - name: Install playwright browsers + # # this does not work - some libraries are missing when executing playwright + # #if: steps.cache-browser-binaries.outputs.cache-hit != 'true' + # run: | + # npx playwright install --with-deps chromium firefox webkit - name: e2e tests run: | npm run test:e2e