Skip to content

Commit

Permalink
Add agent tests (AST-80969)
Browse files Browse the repository at this point in the history
  • Loading branch information
greensd4 committed Jan 21, 2025
1 parent b913b93 commit 76c597c
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [pull_request]

jobs:
integration-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down Expand Up @@ -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:
Expand All @@ -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%"

0 comments on commit 76c597c

Please sign in to comment.