Skip to content

feat: use playwright instead of testing library and msw #35

feat: use playwright instead of testing library and msw

feat: use playwright instead of testing library and msw #35

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint-and-format:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/[email protected]
- name: Setup biome
uses: biomejs/[email protected]
with:
version: latest
- name: Run biome
run: biome ci ./src
typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/[email protected]
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/[email protected]
with:
node-version: lts/*
cache: pnpm # Package manager should be pre-installed
- name: Clean install
run: pnpm i --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
e2e:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/[email protected]
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/[email protected]
with:
node-version: 18
- name: Clean install
run: pnpm i --frozen-lockfile
- name: Install playwright browsers
# since we are installing dependencies beforehand, we can `exec` the binaries directly, instead of `dlx`
run: pnpm exec playwright install --with-deps
- name: Run playwright tests
run: pnpm test
- name: Save playwright report as artifact
uses: actions/[email protected]
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30