Skip to content

Merge pull request #35 from raferdev/development #78

Merge pull request #35 from raferdev/development

Merge pull request #35 from raferdev/development #78

Workflow file for this run

name: Playwright Tests
on:
pull_request:
branches: [main, development]
push:
branches: [main]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node & Pnpm
uses: pnpm/action-setup@v2
with:
version: 8.14.1
- uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'pnpm'
- name: Create env file
run: |
echo "${{ secrets.ENV_TEST_FILE }}" > .env.local
- name: Install dependencies
run: pnpm i
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build
run: pnpm run build
- name: Run Playwright tests
run: pnpm run test.playwright
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30