Skip to content

Check style, Code Coverage and Removal of SENZING_ENGINE_CONFIGURATION_JSON default settings #5

Check style, Code Coverage and Removal of SENZING_ENGINE_CONFIGURATION_JSON default settings

Check style, Code Coverage and Removal of SENZING_ENGINE_CONFIGURATION_JSON default settings #5

Workflow file for this run

name: maven windows
on: [pull_request, workflow_dispatch]
permissions:
contents: read
pull-requests: write
jobs:
maven-windows:
runs-on: windows-latest
strategy:
matrix:
include:
- java-version: "17"
java-distribution: "temurin"
senzingapi-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 API
uses: senzing-factory/github-action-install-senzing-api@v3
with:
senzingapi-version: ${{ matrix.senzingapi-version }}
- name: Build with Maven
run: |
mvn clean install -B "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" -Pjacoco -Djacoco.haltOnFailure=false -Djacoco.ignoreFailture=true -Dsenzing.support.dir="/opt/senzing/data"
- 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%!')