Files
tools/.github/workflows/ci.yaml
T
robonen 9d78f63e56 ci: install Playwright Chromium before running tests
vue/primitives runs vitest in browser mode (instances: chromium), so 'pnpm test' launches Playwright Chromium — which the CI runner doesn't have, failing the run after all 3320 tests pass. Add 'playwright install --with-deps chromium' before the test step in both CI and publish workflows.
2026-06-08 16:39:18 +07:00

44 lines
824 B
YAML

name: CI
on:
pull_request:
branches:
- master
env:
NODE_VERSION: 24.x
jobs:
code-quality:
name: Code quality checks
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint:check
- name: Install Playwright browser
run: pnpm exec playwright install --with-deps chromium
- name: Test
run: pnpm test