Skip to content

Commit

Permalink
Change playwright.yml to run in a Docker container with Github Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JCantu248 committed Mar 25, 2024
1 parent 0eb6600 commit a3708ae
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions frontend/xfd_playwright/.github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,23 @@
name: Playwright Tests
on:
push:
branches: [main, master]
branches: [develop]
pull_request:
branches: [main, master]
branches: [develop]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.42.1-jammy
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 tests
- name: Run your tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
env:
HOME: /root

0 comments on commit a3708ae

Please sign in to comment.