Skip to content

Commit

Permalink
added Playwright jobs to frontend github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aasimsyed committed Apr 23, 2024
1 parent d344398 commit 2e72acc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pr_ci_frontend.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: pr_ci_frontend
on:
push:
pull_request:
branches:
- main
Expand Down Expand Up @@ -43,3 +44,18 @@ jobs:
with:
cmd: eslint . --ext .js,.vue
dir: "frontend"
- name: Install Playwright Browsers
working-directory: ./frontend
run: yarn playwright install --with-deps

- name: Run Playwright tests
working-directory: ./frontend
run: yarn playwright test

- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: frontend/playwright-report/
retention-days: 30

0 comments on commit 2e72acc

Please sign in to comment.