File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # .github/workflows/ci.yml
2+ # APEX TECHNICAL AUTHORITY STANDARD (DECEMBER 2025 EDITION)
3+
4+ name : ' CI: Build, Lint, and Test'
5+
6+ on :
7+ push :
8+ branches : [ "main" ]
9+ pull_request :
10+ branches : [ "main" ]
11+ workflow_dispatch : # Allows manual triggering
12+
13+ # Ensures that only one workflow run is executed for a given PR or branch at a time.
14+ concurrency :
15+ group : ${{ github.workflow }}-${{ github.ref }}
16+ cancel-in-progress : true
17+
18+ jobs :
19+ build-and-verify :
20+ name : ' Build & Verify'
21+ runs-on : ubuntu-latest
22+ permissions :
23+ contents : read
24+
25+ steps :
26+ - name : ' 1. Checkout Repository'
27+ uses : actions/checkout@v4
28+
29+ - name : ' 2. Setup Node.js Environment (v20)'
30+ uses : actions/setup-node@v4
31+ with :
32+ node-version : ' 20'
33+ cache : ' npm'
34+
35+ - name : ' 3. Install Dependencies'
36+ run : npm install
37+
38+ - name : ' 4. Lint & Format Check (Biome)'
39+ run : npm run lint:check
40+ # In package.json: "lint:check": "npx @biomejs/biome check ./src"
41+
42+ - name : ' 5. Build Production Artifact'
43+ run : npm run build
44+ # In package.json: "build": "vite build"
45+
46+ - name : ' 6. Run Unit & Integration Tests (Vitest)'
47+ run : npm run test:ci
48+ # In package.json: "test:ci": "vitest run --coverage"
49+
50+ - name : ' 7. Upload Test Coverage to Codecov'
51+ uses : codecov/codecov-action@v4
52+ env :
53+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
54+ with :
55+ slug : chirag127/ComicNarrate-AI-Web-Comic-Dubber-Browser-Extension
56+ fail_ci_if_error : true
57+ verbose : true
You can’t perform that action at this time.
0 commit comments