Skip to content

Add jacoco test and action #53

Add jacoco test and action

Add jacoco test and action #53

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: write-all
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
id: jacoco
uses: madrapps/jacoco-report@v1.4
with:
paths: ${{ github.workspace }}/translator/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80