Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 53bf7d4

Browse files
Create ci.yml
1 parent 27f7fa7 commit 53bf7d4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
branches: [ main, dev ]
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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /