Skip to content

Commit 6c5975d

Browse files
committed
Add GitHub Actions build workflows
1 parent 64760d2 commit 6c5975d

2 files changed

Lines changed: 70 additions & 0 deletions

File tree

.github/workflows/backend.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Backend Build Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "backend/**"
8+
- ".github/workflows/backend.yml"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "backend/**"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Java 21
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: "21"
26+
distribution: "temurin"
27+
cache: "maven"
28+
29+
- name: Make Maven wrapper executable
30+
working-directory: backend
31+
run: chmod +x mvnw
32+
33+
- name: Build backend
34+
working-directory: backend
35+
run: ./mvnw clean package -DskipTests

.github/workflows/frontend.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Frontend Build Check
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "frontend/**"
8+
- ".github/workflows/frontend.yml"
9+
pull_request:
10+
branches: [main]
11+
paths:
12+
- "frontend/**"
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Node.js 22
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "22"
26+
cache: "npm"
27+
cache-dependency-path: "frontend/package-lock.json"
28+
29+
- name: Install frontend dependencies
30+
working-directory: frontend
31+
run: npm ci
32+
33+
- name: Build frontend
34+
working-directory: frontend
35+
run: npm run build

0 commit comments

Comments
 (0)