diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96fe018..dcd1a79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [pull_request] jobs: integration-tests: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4.1.7 @@ -45,9 +45,6 @@ jobs: env: GITHUB_TOKEN: ${{ github.token }} -# - name: Run tests with coverage -# run: mvn test jacoco:report - - name: Upload coverage report uses: actions/upload-artifact@v4 with: @@ -58,20 +55,3 @@ jobs: uses: cicirello/jacoco-badge-generator@f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 #v2.11.0 with: jacoco-csv-file: coverage-report/target/site/jacoco-aggregate/jacoco.csv - -# - name: Check Coverage Threshold -# run: | -# COVERAGE=$(awk -F, 'NR>1 {lines_covered+=$9; lines_total+=$8+$9} END {printf "%.2f", (lines_covered/lines_total)*100}' coverage-report/target/site/jacoco-aggregate/jacoco.csv) -# echo "Total coverage: $COVERAGE%" -# if (( $(echo "$COVERAGE < 10" | bc -l) )); then -# echo "Coverage is below 70%" -# exit 1 -# fi - -# - name: Print total coverage percentage -# run: | -# COVERED_LINES=$(xmllint --xpath "string(//report/counter[@type='LINE']/@covered)" target/site/jacoco/jacoco.xml) -# MISSED_LINES=$(xmllint --xpath "string(//report/counter[@type='LINE']/@missed)" target/site/jacoco/jacoco.xml) -# TOTAL_LINES=$((COVERED_LINES + MISSED_LINES)) -# COVERAGE_PERCENTAGE=$(echo "scale=2; $COVERED_LINES / $TOTAL_LINES * 100" | bc) -# echo "Total coverage percentage: $COVERAGE_PERCENTAGE%"