Skip to content

Test pour TextInterfaceToListeners #2

Test pour TextInterfaceToListeners

Test pour TextInterfaceToListeners #2

Workflow file for this run

name: Java CI with Maven
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build and Test with Maven
timeout-minutes: 15
run: ./mvnw -B verify
- name: Get JaCoCo Coverage
id: coverage
run: |
coverage=$(python3 config/coverage.py target/site/jacoco/jacoco.csv)
echo "COVERAGE=$coverage" >> $GITHUB_ENV
- name: Fail if coverage has not improved.
run: |
coverage=$COVERAGE
threshold=24.46
if (( $(echo "$coverage - $threshold <= 0.1" | bc -l) )); then
echo "Coverage is not improved."
exit 1
else
echo "New coverage: $coverage%. Coverage is improved!"
fi