Skip to content

Add jacoco test and action #50

Add jacoco test and action

Add jacoco test and action #50

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
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.4
with:
paths: ./translator/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80