Skip to content

Commit

Permalink
Merge pull request #13 from telekom/ci/gradle-build-workflow
Browse files Browse the repository at this point in the history
chore: added gradle build github workflow
  • Loading branch information
mherwig authored Mar 14, 2024
2 parents 09c154d + abcd2ef commit f1d4f89
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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'

0 comments on commit f1d4f89

Please sign in to comment.