Skip to content

CID-2939: Improve connection error logs. Fix jwtToken variable name. … #84

CID-2939: Improve connection error logs. Fix jwtToken variable name. …

CID-2939: Improve connection error logs. Fix jwtToken variable name. … #84

name: leanix-github-agent-code-coverage
concurrency:
group: leanix-github-agent-code-coverage-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches:
- main
jobs:
leanix-github-agent-connector-ci:
name: Build and test LeanIX GitHub Agent
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
id: gradle-build
continue-on-error: false
with:
arguments: build
build-root-directory: .
- name: Report Test Results
uses: dorny/test-reporter@v1
with:
name: Unit Tests
path: |
${{ github.workspace }}/build/test-results/test/*.xml
reporter: java-junit
fail-on-error: true
fail-on-empty: true
only-summary: false
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.3
with:
paths: ${{ github.workspace }}/build/jacocoXml/jacocoTestReport.xml
token: ${{secrets.GITHUB_TOKEN}}
min-coverage-overall: 40
min-coverage-changed-files: 60
title: LeanIX GitHub Agent Code Coverage
update-comment: true
- name: Get the Coverage info
run: |
echo "Total coverage ${{ steps.jacoco.outputs.coverage-overall }}"
echo "Changed Files coverage ${{ steps.jacoco.outputs.coverage-changed-files }}"