Skip to content

Add jacoco test and action #102

Add jacoco test and action

Add jacoco test and action #102

Workflow file for this run

name: Build Translators
on:
push:
branches: [ "main" ]
paths: [ "translator/**" ]
pull_request:
branches: [ "main" ]
paths: [ "translator/**" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- run: mvn -B install --file ./translator/pom.xml
- name: Add coverage to PR
if: github.repository_owner == 'finos'
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/translator/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80