Skip to content

Commit

Permalink
refactor(playwright.yml): setup with yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
trulysinclair committed Sep 3, 2024
1 parent c5c929e commit 1fc85d3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
branches: [ main ]
pull_request:
branches: [ main, master ]
branches: [ main ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Setup Node v20
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: '20'
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: npm ci
run: yarn install --immutable
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
run: yarn test
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit 1fc85d3

Please sign in to comment.