Skip to content

Commit

Permalink
run playwright on github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Nov 29, 2023
1 parent 4b39f5c commit 2e83a96
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Playwright Tests
on:
push:
branches: [ master, dev ]
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright accessibility tests
run: npx playwright test src/tests/accessibility/
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
4 changes: 0 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ extends:
npx playwright install
displayName: "Install playwright"
- script: |
npx playwright test src/tests/accessibility/
displayName: "Run accessibility tests"
- script: |
npx playwright test src/tests/ui/
env:
Expand Down

0 comments on commit 2e83a96

Please sign in to comment.