debug #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: maven linux | |
on: | |
push: | |
branches-ignore: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
maven-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- java-version: "17" | |
java-distribution: "temurin" | |
senzingapi-runtime-version: "staging-v4" | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: ${{ matrix.java-distribution }} | |
- name: install Senzing runtime | |
uses: senzing-factory/github-action-install-senzing-api@v3 | |
with: | |
senzingapi-runtime-version: ${{ matrix.senzingapi-runtime-version }} | |
- name: install senzingapi-setup | |
run: | | |
sudo SENZING_ACCEPT_EULA=I_ACCEPT_THE_SENZING_EULA apt-get -y install senzingapi-setup | |
sudo apt list | grep senzing | |
whoami | |
ls -tlc /opt/senzing | |
ls -tlc /opt/senzing/data | |
ls -tlc /opt/senzing/data/templates | |
- name: Build with Maven | |
run: | | |
mvn clean install -Pcheckstyle,jacoco,spotbugs -Djacoco.haltOnFailure=false -Djacoco.ignoreFailture=true -Dsenzing.support.dir="/opt/senzing/data" -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | |
- name: Jacoco Report to PR | |
id: jacoco | |
uses: madrapps/[email protected] | |
with: | |
paths: ${{ github.workspace }}/target/site/**/*.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 80 | |
min-coverage-changed-files: 80 | |
title: Code Coverage | |
update-comment: true | |
skip-if-no-changes: true | |
pass-emoji: ':green_circle:' | |
fail-emoji: ':red_circle:' | |
- name: Fail PR if overall coverage is less than 80% | |
if: ${{ steps.jacoco.outputs.coverage-overall < 80.0 }} | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
core.setFailed('Overall coverage is less than 80%!') |