Skip to content

Commit 9920c9e

Browse files
authored
feat(ci): add ci/cd pipeline
Signed-off-by: Son Nguyen <[email protected]>
1 parent a552b50 commit 9920c9e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI/CD Pipeline
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
formatting:
11+
name: "🔧 Formatting & Lint"
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
continue-on-error: true
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
continue-on-error: true
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
continue-on-error: true
27+
28+
- name: Prettier format
29+
run: npm run format
30+
continue-on-error: true
31+
32+
- name: ESLint lint
33+
run: npm run lint
34+
continue-on-error: true
35+
36+
complete:
37+
name: "🎉 Pipeline Complete"
38+
runs-on: ubuntu-latest
39+
needs: [formatting]
40+
if: ${{ always() }}
41+
steps:
42+
- name: Final status
43+
run: echo "✅ CI/CD pipeline finished successfully."

0 commit comments

Comments
 (0)