Skip to content

Commit

Permalink
Use new Gradle actions (#3781)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Apr 16, 2024
1 parent 6dbc84e commit 01f084e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 20 deletions.
17 changes: 9 additions & 8 deletions .github/actions/run-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ runs:
with:
distribution: temurin
java-version: 21
- uses: gradle/gradle-build-action@v3
- uses: gradle/actions/setup-gradle@v3
- shell: bash
env:
JAVA_HOME: ${{ steps.setup-gradle-jdk.outputs.path }}
with:
arguments: |
-Porg.gradle.java.installations.auto-download=false
-Pjunit.develocity.predictiveTestSelection.enabled=${{ github.event_name == 'pull_request' }}
"-Dscan.value.GitHub job=${{ github.job }}"
javaToolchains
${{ inputs.arguments }}
run: |
./gradlew \
-Porg.gradle.java.installations.auto-download=false \
-Pjunit.develocity.predictiveTestSelection.enabled=${{ github.event_name == 'pull_request' }} \
"-Dscan.value.GitHub job=${{ github.job }}" \
javaToolchains \
${{ inputs.arguments }}
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
uses: ./.github/actions/run-gradle
with:
arguments: |
--no-build-cache
-Dscan.tag.CodeQL
--no-build-cache \
-Dscan.tag.CodeQL \
allMainClasses
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
12 changes: 6 additions & 6 deletions .github/workflows/cross-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
uses: ./.github/actions/run-gradle
with:
arguments: |
-PjavaToolchain.version=${{ matrix.jdk }}
-Dscan.tag.JDK_${{ matrix.jdk }}
-PjavaToolchain.version=${{ matrix.jdk }} \
-Dscan.tag.JDK_${{ matrix.jdk }} \
build
- name: Upload Test Distribution trace files
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -77,8 +77,8 @@ jobs:
uses: ./.github/actions/run-gradle
with:
arguments: |
-PjavaToolchain.version=${{ matrix.jdk }}
-PjavaToolchain.implementation=j9
-Dscan.tag.JDK_${{ matrix.jdk }}
-Dscan.tag.OpenJ9
-PjavaToolchain.version=${{ matrix.jdk }} \
-PjavaToolchain.implementation=j9 \
-Dscan.tag.JDK_${{ matrix.jdk }} \
-Dscan.tag.OpenJ9 \
build
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
with:
fetch-depth: 1
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v3
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
uses: ./.github/actions/main-build
with:
arguments: |
-Ptesting.enableJaCoCo
build
jacocoRootReport
-Ptesting.enableJaCoCo \
build \
jacocoRootReport \
prepareDocsForUploadToGhPages
- name: Upload to Codecov.io
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 01f084e

Please sign in to comment.