Skip to content

Commit

Permalink
DTSPB-2849 - Update playwright.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
MarianIrudayanathan committed Feb 6, 2024
1 parent 808497e commit c9a2805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 # Skip downloading during yarn install
PLAYWRIGHT_BROWSERS_PATH: 0 # Places binaries to node_modules/@playwright/test
jobs:
test:
timeout-minutes: 60
Expand All @@ -14,9 +17,12 @@ jobs:
with:
node-version: 18
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
run: |
npx playwright install-deps
- name: Setup
run: |
yarn install
yarn playwright install
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ USER root
RUN apk add git
USER hmcts

RUN PLAYWRIGHT_SKIP_CHROMIUM_DOWNLOAD=true && PLAYWRIGHT_BROWSERS_PATH=false yarn install
RUN yarn playwright install
RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install
RUN yarn -v
RUN node -v
RUN yarn setup-sass
Expand Down

0 comments on commit c9a2805

Please sign in to comment.