Skip to content

Commit

Permalink
integrate playwright to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Dec 8, 2023
1 parent 2d73cdb commit 96fe5fb
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install dependencies
working-directory: ./web/playwright
run: npm ci
- name: Install Playwright Browsers
working-directory: ./web/playwright
run: npx playwright install --with-deps
- name: Run Playwright tests
working-directory: ./web/playwright
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ./web/playwright/playwright-report/
retention-days: 30

0 comments on commit 96fe5fb

Please sign in to comment.