Skip to content

chore(repo): replace yarn with pnpm as package manager #5

chore(repo): replace yarn with pnpm as package manager

chore(repo): replace yarn with pnpm as package manager #5

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
strategy:
matrix:
node-version: [20]
steps:
- name: 🛎️ Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # All history for branches and tags
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 🛠️ Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
cache: pnpm
- name: 📂 Install Dependencies
run: pnpm i
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: Run E2E tests
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
run: pnpm playwright test
- name: Upload Artifact
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: 💰 Profit
run: echo 🐞