Skip to content

Merge pull request #18 from telekom/fix-loop-detection #121

Merge pull request #18 from telekom/fix-loop-detection

Merge pull request #18 from telekom/fix-loop-detection #121

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Deutsche Telekom AG
#
# SPDX-License-Identifier: Apache-2.0
name: Gradle Build and Test
on:
push:
pull_request:
branches:
- main
jobs:
gradle:
runs-on: ubuntu-latest
services:
docker:
image: docker:25-dind
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
run: ./gradlew build
- name: Add coverage to PR
id: jacoco
uses: madrapps/jacoco-report@v1.6.1
with:
paths: |
${{ github.workspace }}/**/build/reports/jacoco/**/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 80
if: github.event_name == 'pull_request'