Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add separate dependency-submission workflow for GitHub actions #3668

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/actions/main-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ 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@v4
if: ${{ always() }}
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/actions/run-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ 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 @@ -21,7 +17,6 @@ runs:
env:
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
dependency-graph: ${{ inputs.dependency-graph }}
arguments: |
-Porg.gradle.java.installations.auto-download=false
-Pjunit.develocity.predictiveTestSelection.enabled=${{ github.event_name == 'pull_request' }}
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/gradle-dependency-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Gradle Dependency Submission

on:
push:
branches:
- main

permissions:
contents: write

jobs:
dependency-submission:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Generate and submit dependency graph
uses: gradle/actions/dependency-submission@v3
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
- name: Build
uses: ./.github/actions/main-build
with:
dependency-graph: generate-and-submit
arguments: |
-Ptesting.enableJaCoCo
build
Expand Down
Loading