Add PR validations to improve maintainability (#143) #395
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Gradle dependencies submission" | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version-file: .java-version | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Gradle Dependency Submission | |
uses: gradle/actions/dependency-submission@v3 | |
with: | |
build-scan-publish: true | |
build-scan-terms-of-service-url: 'https://gradle.com/terms-of-service' | |
build-scan-terms-of-service-agree: 'yes' | |
env: | |
GITHUB_DEPENDENCY_GRAPH_REF: ${{ github.ref }} | |
DEPENDENCY_GRAPH_EXCLUDE_PROJECTS: ':buildSrc' | |
DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS: '.*[Tt]est(Compile|Runtime)Classpath' |