Skip to content

ci: always upload playwright artifacts #9

ci: always upload playwright artifacts

ci: always upload playwright artifacts #9

Workflow file for this run

name: E2E Tests
on:
# TODO remove once we know this action is working correctly
push:
branches: [test/2255-hmr-tests]
pull_request:
branches: [main, next]
jobs:
tests:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
- uses: pnpm/action-setup@v4
with:
version: 8.15.8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright and browsers
run: pnpm playwright install --with-deps
- name: Run tests
run: pnpm run test:e2e
- name: Upload Playwright reports
if: always()
uses: actions/upload-artifact@v4
with:
name: playwright-reports
path: e2e/**/playwright-report/