refactor: fix missing 'run' keyword #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Playwright Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Install Playwright Browsers | |
run: yarn workspaces foreach -A run playwright install chromium --with-deps | |
- name: Build Files | |
run: yarn build | |
- name: Run Playwright tests | |
run: yarn test | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: playwright-report | |
path: playwright-report/ | |
retention-days: 30 |