chore(deps): update dependency unplugin-vue-components to v0.28.0 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/checkout@v4.2.2 | |
- uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: 9 | |
run_install: false | |
- uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- uses: actions/cache@v4.2.0 | |
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/vitest-coverage-report-action@v2.8.0 | |
if: ${{ matrix.browser == 'webkit' && success() }} |