-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 1.13 KB
/
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
33
34
35
36
37
# 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: 'Maven Build'
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
env:
MAVEN_ARGS: -B -ntp -Prelease -Pcoverage -Dmaven.javadoc.skip=true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build Maven
run: mvn ${MAVEN_ARGS} -Drevision=${{ steps.bump_version.outputs.new_tag }} compile
- name: Maven Test
run: mvn ${MAVEN_ARGS} test
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Code quality
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn ${MAVEN_ARGS} -Dsonar.java.binaries=target/classes -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=yyvess-github jacoco:report sonar:sonar