Skip to content

ci(workflow): trigger deploy by push on main #68

ci(workflow): trigger deploy by push on main

ci(workflow): trigger deploy by push on main #68

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.9.2
- uses: actions/setup-node@v3
with:
node-version: '18'
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