Skip to content

Commit

Permalink
ci: generate build scans and dependency graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Prototik committed Jan 8, 2024
1 parent fe47957 commit 3a84ffc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradle }}
dependency-graph: generate
artifact-retention-days: 1
- name: Build
run: ./gradlew -s build
run: gradle -s build --scan
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: '**/build/test-results/*/TEST-*.xml'
check_name: "JUnit Test Report (Gradle ${{ matrix.gradle }}, Java ${{ matrix.java }})"
16 changes: 16 additions & 0 deletions .github/workflows/submit-dependency-graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Submit Dependency Graph

on:
workflow_run:
workflows: [Build]
types: [completed]

jobs:
submit-dependency-graph:
name: Submit Dependency Graph
runs-on: ubuntu-latest
steps:
- name: Retrieve dependency graph artifact and submit
uses: gradle/gradle-build-action@v2
with:
dependency-graph: download-and-submit
7 changes: 7 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
plugins {
id("com.gradle.enterprise") version "3.16.1"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}

rootProject.name = "cursed-publish"

gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}

0 comments on commit 3a84ffc

Please sign in to comment.