Skip to content

Commit

Permalink
chore: added gradle build github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mherwig committed Mar 14, 2024
1 parent 09c154d commit abcd2ef
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 abcd2ef

Please sign in to comment.