Skip to content

Commit 22a5755

Browse files
committed
GitHub Actions: add CI workflow
1 parent dbe638c commit 22a5755

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)