Skip to content

Commit b756f56

Browse files
author
colto
committed
Add GitHub Actions CI workflow
1 parent 8e8c723 commit b756f56

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
backend-build:
11+
name: Backend Build (Spring Boot)
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
working-directory: backend
17+
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Java
23+
uses: actions/setup-java@v4
24+
with:
25+
distribution: temurin
26+
java-version: "17"
27+
28+
- name: Build backend
29+
run: mvn -q -DskipTests package
30+
31+
frontend-build:
32+
name: Frontend Build (React)
33+
runs-on: ubuntu-latest
34+
35+
defaults:
36+
run:
37+
working-directory: frontend
38+
39+
steps:
40+
- name: Checkout repo
41+
uses: actions/checkout@v4
42+
43+
- name: Set up Node
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: "20"
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Build frontend
52+
run: npm run build

0 commit comments

Comments
 (0)