Skip to content

Commit 5a24d43

Browse files
committed
feat: implement initial CI pipeline with GitHub Actions (#51)
1 parent bf0d5dc commit 5a24d43

5 files changed

Lines changed: 56 additions & 190 deletions

File tree

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/enhancement.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/pr_template.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: RIVETO CI Pipeline
2+
3+
# 1. Workflow Triggers
4+
on:
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build-and-verify:
12+
name: Build & Lint Monorepo
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
# 2. Checkout the repository code
17+
- name: Checkout Code
18+
uses: actions/checkout@v4
19+
20+
# 3. Set up Node.js environment
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20.x'
25+
cache: 'npm'
26+
27+
# 4. Install Dependencies (Skipping Root until Lint PR is merged)
28+
# - name: Install Root Dependencies
29+
# run: npm install
30+
31+
- name: Install Frontend Dependencies
32+
working-directory: ./frontend
33+
run: npm install
34+
35+
- name: Install Backend Dependencies
36+
working-directory: ./backend
37+
run: npm install
38+
39+
# 5. Run Linters (Commented out until PR #53 is merged)
40+
# - name: Run ESLint & Prettier Checks
41+
# run: npm run lint
42+
43+
# 6. Build the Frontend
44+
- name: Build Frontend (Vite/React)
45+
working-directory: ./frontend
46+
run: npm run build
47+
48+
# 7. Security Audit
49+
- name: NPM Security Audit
50+
run: npm audit --audit-level=high || true
51+
52+
# 8. Placeholder for future tests
53+
- name: Run Tests (Test-Ready)
54+
run: |
55+
echo "Tests are not fully implemented yet."
56+
# npm run test

0 commit comments

Comments
 (0)