-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 925 Bytes
/
maven.yml
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
29
30
31
32
name: Java CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, ubuntu-latest, macos-latest ]
java: [ 7, 8, 11, 17, 19 ]
steps:
- uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Set up GCS Maven Central mirror
run: echo "<settings><mirrors><mirror><id>google-maven-central</id><name>GCS Maven Central mirror</name><url>https://maven-central.storage-download.googleapis.com/maven2/</url><mirrorOf>central</mirrorOf></mirror></mirrors></settings>" > ~/.m2/settings.xml
- name: java -version
run: java -version
- name: mvn -version
run: ./mvnw -version
- name: Build
run: ./mvnw -B package -DskipTests
- name: Test
run: ./mvnw -B verify