Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

feat: added Playwright and created 2 demo tests (#200) #6

feat: added Playwright and created 2 demo tests (#200)

feat: added Playwright and created 2 demo tests (#200) #6

Workflow file for this run

name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.42.1-jammy
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: yarn
- name: Install node modules
run: yarn --frozen-lockfile --prefer-offline
- name: Run linter
run: yarn lint
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30