Skip to content

Commit 3399382

Browse files
committed
🔧 ci: Add GitHub Actions workflow with tests and CodeQL analysis
1 parent ecff272 commit 3399382

File tree

2 files changed

+133
-197
lines changed

2 files changed

+133
-197
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: 🧪 CI Pipeline
2+
3+
on:
4+
push:
5+
branches: [ main, develop, 'release/*' ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
name: 🧪 Test & Code Analysis
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
steps:
19+
- name: 📥 Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: ☕ Set up JDK 17
23+
uses: actions/setup-java@v4
24+
with:
25+
java-version: '17'
26+
distribution: 'temurin'
27+
cache: maven
28+
29+
- name: 🔍 Initialize CodeQL
30+
uses: github/codeql-action/init@v3
31+
with:
32+
languages: java
33+
34+
- name: 🏗️ Build & compile
35+
run: mvn clean compile -q
36+
37+
- name: 🧪 Run tests
38+
run: mvn test
39+
40+
- name: 🔍 Perform CodeQL Analysis
41+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)