Skip to content

refactor: exclusively restart ViteManager when required and improve error handling #2740

refactor: exclusively restart ViteManager when required and improve error handling

refactor: exclusively restart ViteManager when required and improve error handling #2740

name: Test Vite Ecosystem CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- "**"
- ".github/workflows/test-vite-ecosystem-ci.yaml"
- "!assets/**"
- "!integrations/**"
pull_request:
branches:
- "*"
paths:
- "**"
- ".github/workflows/test-vite-ecosystem-ci.yaml"
- "!assets/**"
- "!integrations/**"
jobs:
vite-ecosystem-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-full-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-full-
- uses: pnpm/[email protected]
with:
run_install: true
- run: cd testing && pnpm exec playwright install
- run: pnpm vite-ecosystem-ci:build
- run: pnpm vite-ecosystem-ci:test