Skip to content

Commit

Permalink
Generate and submit dependency graph
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jul 23, 2023
1 parent c370584 commit 71af3b3
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: Gradle build action dependency-graph setting
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: Gradle build action dependency-graph setting
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
-Penterprise.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 @@ -37,6 +37,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 71af3b3

Please sign in to comment.