refactor: simplify npm scripts and streamline CI workflow

Consolidate package.json scripts from 17 to 10 by removing
redundant test variants and combining type-check + lint into
a single 'check' command. Update CI workflow to use simplified
commands and merge separate unit/integration test steps into
unified test execution. Update documentation to reflect new
script structure.
This commit is contained in:
2025-10-23 16:05:11 -05:00
parent 5c9c6defc4
commit 2f23dd33e9
3 changed files with 15 additions and 32 deletions

View File

@@ -38,14 +38,11 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run linting
run: pnpm lint
- name: Type checking
run: pnpm type-check
- name: Type checking and linting
run: pnpm check
- name: Check formatting
run: pnpm prettier --check .
run: pnpm format:check
# Testing
test:
@@ -70,18 +67,13 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run unit tests
run: pnpm test:run:coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run integration tests
run: pnpm test:integration:coverage
- name: Run tests with coverage
run: pnpm test:coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Run tests with junit reporter
run: pnpm vitest run --reporter=junit --outputFile=test-report.junit.xml
run: pnpm test -- --reporter=junit --outputFile=test-report.junit.xml
if: always()
- name: Upload coverage reports to Codecov