Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
Use Gradle build actions and run build scan (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
joschi authored Sep 18, 2022
1 parent 2bac102 commit 2895db5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,19 @@ jobs:
- name: Start docker compose for integration tests
run: docker-compose -f docker/docker-compose.yml up -d

- name: Build with Gradle
run: ./gradlew --info build jacocoTestReport
- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Run build with Gradle wrapper
id: gradle
run: ./gradlew --info --scan build jacocoTestReport

- name: Upload build reports
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: build-reports
path: build/reports/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
Expand Down
15 changes: 14 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
rootProject.name = 'kafka-gitops'
plugins {
id("com.gradle.enterprise") version("3.9")
}

gradleEnterprise {
if (System.getenv("CI") != null) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}

rootProject.name = 'kafka-gitops'

0 comments on commit 2895db5

Please sign in to comment.