Skip to content

Commit 2ecb3a4

Browse files
committed
Add GitHub Actions CI workflow
1 parent 0abf691 commit 2ecb3a4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ "main", "solution" ]
6+
pull_request:
7+
branches: [ "main", "solution" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up JDK 25
17+
uses: actions/setup-java@v4
18+
with:
19+
java-version: '25'
20+
distribution: 'temurin'
21+
cache: maven
22+
23+
- name: Build with Maven
24+
run: ./mvnw clean verify -Popenai -B
25+
26+
- name: Upload Build Artifact
27+
uses: actions/upload-artifact@v4
28+
with:
29+
name: battle-contender-jar
30+
path: target/*.jar

0 commit comments

Comments
 (0)