We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f7fa7 commit 53bf7d4Copy full SHA for 53bf7d4
.github/workflows/ci.yml
@@ -0,0 +1,37 @@
1
+name: 🚀 CI - Code Quality and Build Check
2
+
3
+on:
4
+ push:
5
+ branches: [ main, dev ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build-and-lint:
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: 📥 Checkout Code
15
+ uses: actions/checkout@v3
16
17
+ - name: ⚙️ Set up Node.js
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: 18
21
22
+ - name: 📦 Install Dependencies
23
+ run: npm install
24
25
+ - name: 🧪 Run Lint
26
+ run: npm run lint
27
28
+ - name: 🛠️ Build Project
29
+ run: npm run build
30
31
+ - name: ✅ Run Tests (optional)
32
+ run: |
33
+ if [ -f vitest.config.ts ] || [ -f vitest.config.js ]; then
34
+ npm run test
35
+ else
36
+ echo "No test setup found. Skipping..."
37
+ fi
0 commit comments