mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 06:19:58 +00:00
36 lines
624 B
YAML
36 lines
624 B
YAML
name: Unit Test, Lint, and Format
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master, "dev*"]
|
|
pull_request:
|
|
branches: [main, master, "dev*"]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- name: Build
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
|
|
- name: Run lint
|
|
run: |
|
|
npm run lint:ci
|
|
|
|
- name: Run format
|
|
run: |
|
|
npm run format
|
|
|
|
- name: Run vitest tests
|
|
run: |
|
|
npm test -- --reporter=verbose
|