Skip to content

Commit 6357ed1

Browse files
test: Created GitHub Actions CI pipeline with type-check, test, coverag…
- ".github/workflows/ci.yml" GSD-Task: S12/T04
1 parent 06032ab commit 6357ed1

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- 'milestone/**'
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
verify:
14+
name: Verify
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: npm
25+
cache-dependency-path: |
26+
backend/package-lock.json
27+
frontend/package-lock.json
28+
29+
# --- Backend ---
30+
- name: Install backend dependencies
31+
run: cd backend && npm ci
32+
33+
- name: Backend type check
34+
run: cd backend && npx tsc --noEmit
35+
36+
- name: Backend tests
37+
run: cd backend && npx vitest run
38+
39+
- name: Backend coverage
40+
run: cd backend && npx vitest run --coverage
41+
42+
# --- Frontend ---
43+
- name: Install frontend dependencies
44+
run: cd frontend && npm ci
45+
46+
- name: Frontend type check
47+
run: cd frontend && npx tsc -b
48+
49+
- name: Frontend build
50+
run: cd frontend && npx vite build

0 commit comments

Comments
 (0)