Skip to content

chore(deps): update all dependencies #6

chore(deps): update all dependencies

chore(deps): update all dependencies #6

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths:
- 'src/**'
- 'tests/**'
- 'pnpm-lock.yaml'
- '.github/workflows/tests.yml'
pull_request:
paths:
- 'src/**'
- 'tests/**'
- 'pnpm-lock.yaml'
- '.github/workflows/tests.yml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
browser: [webkit, firefox, chromium]
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 9
run_install: false
- uses: actions/[email protected]
with:
node-version: 22
cache: 'pnpm'
- uses: actions/[email protected]
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: ${{ runner.os }}-${{ matrix.browser }}-playwright-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Install deps
run: pnpm install --frozen-lockfile
- name: Type Check
run: pnpm ts
- name: Run unit tests
run: pnpm vitest run --coverage
- run: pnpm exec playwright install --with-deps ${{ matrix.browser }}
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: pnpm exec playwright install-deps ${{ matrix.browser }}
if: steps.playwright-cache.outputs.cache-hit == 'true'
- name: Build
run: pnpm vite build
- name: Run e2e tests
run: pnpm playwright test --project="${{ matrix.browser }}"
- name: Coverage
uses: davelosert/[email protected]
if: ${{ matrix.browser == 'webkit' && success() }}