Skip to content

Commit e2f526c

Browse files
jamie-keyinCopilot
andcommitted
Add CI workflow (maven test)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 20b402f commit e2f526c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main", "feature/**"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 26
18+
uses: actions/setup-java@v4
19+
with:
20+
distribution: temurin
21+
java-version: '26'
22+
23+
- name: Cache Maven local repository
24+
uses: actions/cache@v4
25+
with:
26+
path: ~/.m2/repository
27+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: |
29+
${{ runner.os }}-m2-
30+
31+
- name: Build and run tests
32+
run: mvn -B -U test

0 commit comments

Comments
 (0)