Skip to content

adding github playwright yml #1

adding github playwright yml

adding github playwright yml #1

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [main, master, feat/github-actions-playwright]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.39.0-jammy
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Go to playwright folder
run: cd playwright
- name: Install dependencies
run: npm ci
- name: Run your tests
run: npx playwright test
env:
HOME: /root
ENVIRONMENT: production
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30