Skip to content

Commit c593d38

Browse files
committed
chore: add test unit in github workflow
1 parent 5dce294 commit c593d38

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,43 @@ on:
66
pull_request:
77
branches: [main, master]
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
quality:
15+
name: Quality Gates
1116
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
1219
steps:
13-
- uses: actions/checkout@v4
20+
- name: Checkout Code
21+
uses: actions/checkout@v4
1422

15-
- uses: pnpm/action-setup@v3
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v3
1625

17-
- name: Setup Node
26+
- name: Setup Node.js
1827
uses: actions/setup-node@v4
1928
with:
2029
node-version: 22
2130
cache: pnpm
2231

23-
- name: Install dependencies
24-
run: pnpm install
32+
- name: Install Dependencies
33+
run: pnpm install --frozen-lockfile
2534

26-
- name: Check Formatting & Lint
35+
- name: Linting & Formatting
2736
run: pnpm lint
2837

29-
- name: Type Check (Strict)
38+
- name: Type Checking
3039
run: pnpm type-check
3140

41+
- name: Unit Tests
42+
run: pnpm test:unit --run
43+
3244
- name: Build Production
3345
run: pnpm build
3446

3547
- name: Security Audit
36-
run: pnpm run audit
48+
run: pnpm audit

0 commit comments

Comments
 (0)