-
-
Notifications
You must be signed in to change notification settings - Fork 151
28 lines (26 loc) · 831 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven
name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "adopt" # See 'Supported distributions' for available options
java-version: "11"
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: ./mvnw --batch-mode package javadoc:jar site
- name: Run integration-test
run: ./mvnw --batch-mode verify # verify includes integration-test