Skip to content

Commit

Permalink
Try playwright container
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-mk committed Dec 16, 2024
1 parent 0ac23f2 commit 130ed02
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/frontend-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 130ed02

Please sign in to comment.