Skip to content

Commit

Permalink
Submit GitHub dependency graph from main CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Dec 15, 2023
1 parent d254430 commit c5fbd03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/actions/main-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,18 @@ inputs:
required: true
description: Gradle arguments
default: build
dependency-graph:
required: false
description: 'see https://github.com/gradle/gradle-build-action#enable-dependency-graph-generation-for-a-workflow'
default: disabled
runs:
using: "composite"
steps:
- uses: ./.github/actions/setup-test-jdk
- uses: ./.github/actions/run-gradle
with:
arguments: ${{ inputs.arguments }}
dependency-graph: ${{ inputs.dependency-graph }}
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/run-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
required: true
description: Gradle arguments
default: build
dependency-graph:
required: false
description: 'see https://github.com/gradle/gradle-build-action#enable-dependency-graph-generation-for-a-workflow'
default: disabled
runs:
using: "composite"
steps:
Expand All @@ -17,6 +21,7 @@ runs:
env:
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
dependency-graph: ${{ inputs.dependency-graph }}
arguments: |
-Porg.gradle.java.installations.auto-download=false
-Pdevelocity.predictiveTestSelection.enabled=${{ github.event_name == 'pull_request' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
- name: Build
uses: ./.github/actions/main-build
with:
dependency-graph: generate-and-submit
arguments: |
-Ptesting.enableJaCoCo
build
Expand Down

0 comments on commit c5fbd03

Please sign in to comment.