-
Notifications
You must be signed in to change notification settings - Fork 27
32 lines (28 loc) · 1.07 KB
/
CI.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: CI
on: [push, pull_request]
jobs:
test:
name: 'Java: ${{ matrix.java }} (${{ matrix.distribution }})'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
distribution: [ 'zulu', 'adopt' ]
java: [ '8' ]
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-java${{ matrix.java }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-java${{ matrix.java }}-m2
- name: Run Tests
run: mvn verify -Dgpg.skip -Dmaven.javadoc.skip=true -B -V -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn