Skip to content

Instantly share code, notes, and snippets.

@bfagundez
Created April 18, 2023 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bfagundez/db770f6a8265ed51dd50acc9b75b8b74 to your computer and use it in GitHub Desktop.
Save bfagundez/db770f6a8265ed51dd50acc9b75b8b74 to your computer and use it in GitHub Desktop.
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@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment