Skip to content

ci: trigger production deployment only on release #20

ci: trigger production deployment only on release

ci: trigger production deployment only on release #20

Workflow file for this run

name: Testing
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Build static site
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
pnpm build
- name: Run unit tests
run: pnpm test:unit
- name: Run Playwright tests
run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30