diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..91bc2721 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path + +name: maven + +on: + push: + branches: + - master + - 'releases/*' + - 'refs/tags/*' + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.11 + uses: actions/setup-java@v1 + with: + java-version: 1.11 + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Build with Maven + env: + CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} + run: | + mvn clean verify -Pcoverage -Ppack --file pom.xml --batch-mode -Dsytle.colors=always --errors + bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN -F unittests -f ./target/site/jacoco/jacoco.xml -n codecov-umbrella diff --git a/.gitignore b/.gitignore index b12dd7c8..b199a8ee 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ target .#* dependency-reduced-pom.xml +.factorypath +.classpath +.project +.settings/ diff --git a/pom.xml b/pom.xml index 968786f7..114bd36d 100644 --- a/pom.xml +++ b/pom.xml @@ -246,6 +246,65 @@ + + + coverage + + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + + + **/*Builder* + **/*Immutable* + **/*_Factory* + **/*_*Factory*.* + **/generated-sources*.* + + + + BUNDLE + + + INSTRUCTION + COVEREDRATIO + 0.60 + + + + + + + + pre-test + + prepare-agent + + + + default-check + + check + + + + post-unit-test + test + + report + + + + + + + + + @@ -333,20 +392,6 @@ 4.0.0 spotbugs-maven-plugin - - org.jacoco - jacoco-maven-plugin - 0.8.5 - - - **/*Builder* - **/*Immutable* - **/*_Factory* - **/*_*Factory*.* - **/generated-sources*.* - - - com.coveo fmt-maven-plugin