Skip to content

Release as a package and monorepo structure #42

Release as a package and monorepo structure

Release as a package and monorepo structure #42

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
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Install dependencies
run: pnpm install
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- run: pnpm build
- name: Run Playwright tests
run: pnpm exec playwright test --project replay-chromium --reporter=@replayio/playwright/reporter,line
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Upload replays
if: ${{ always() }}
uses: replayio/[email protected]
with:
public: true
# TODO: Replace with a secret before merging
# api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}
api-key: rwk_it0M3XJ0w4NYjEZtc72dd3BHI4pQEoChgy5u1sLZUs9