forked from kubernetes-client/java
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 950 Bytes
/
maven.yml
File metadata and controls
29 lines (26 loc) · 950 Bytes
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
# 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: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: Java ${{ matrix.java }} Maven Test
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 8.0.x, 9.0.x, 10.0.x, 11.0.x, 12.0.x, 13.0.x ]
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3.5.1
with:
java-version: ${{ matrix.java }}
- name: Verify Format and License
run: mvn spotless:check
- name: Build with Maven
run: mvn -q test -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn