mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
- Remove pnpm-specific files (pnpm-lock.yaml, pnpm-workspace.yaml) - Update package.json scripts to use npm instead of pnpm - Add npm workspaces configuration - Update all GitHub workflow files to use npm - Update documentation to reference npm commands - Generate package-lock.json for npm dependency management
42 lines
1014 B
YAML
42 lines
1014 B
YAML
name: Vitest Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master, dev*, core/*, desktop/* ]
|
|
pull_request:
|
|
branches-ignore: [ wip/*, draft/*, temp/* ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 'lts/*'
|
|
cache: 'npm'
|
|
|
|
- name: Cache tool outputs
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
.cache
|
|
coverage
|
|
.vitest-cache
|
|
key: vitest-cache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('src/**/*.{ts,vue,js}', 'vitest.config.*', 'tsconfig.json') }}
|
|
restore-keys: |
|
|
vitest-cache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}-
|
|
vitest-cache-${{ runner.os }}-
|
|
test-tools-cache-${{ runner.os }}-
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Vitest tests
|
|
run: |
|
|
npm run test:component
|
|
npm run test:unit
|