Skip to content

Commit 8be6249

Browse files
committed
docs: update .github/workflows/ci.yml via Apex Optimizer
1 parent 5ce7b3b commit 8be6249

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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

0 commit comments

Comments
 (0)