gradle.yml, graalvm.yml: fix Gradle Action deprecation warning

Remove `arguments` parameter from `setup-gradle` and add add a basic
`run` step with the actual `gradle` command.

This fixes a deprecation warning.
This commit is contained in:
Sean Gilligan 2024-04-27 15:28:28 -07:00 committed by Andreas Schildbach
parent 3c7088b832
commit f1a5ebe71e
2 changed files with 6 additions and 4 deletions

View File

@ -23,11 +23,12 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build with Gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.gradle }}
arguments: test nativeCompile --init-script build-scan-agree.gradle --scan --info --stacktrace
- name: Run Gradle
run: gradle test nativeCompile --init-script build-scan-agree.gradle --scan --info --stacktrace
- name: Upload wallet-tool as artifact
uses: actions/upload-artifact@v4
with:

View File

@ -28,11 +28,12 @@ jobs:
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Build with Gradle
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.gradle }}
arguments: -PtestJdk8=true build --init-script build-scan-agree.gradle --scan --info --stacktrace
- name: Run Gradle
run: gradle -PtestJdk8=true build --init-script build-scan-agree.gradle --scan --info --stacktrace
- name: Upload Test Results and Reports
uses: actions/upload-artifact@v4
if: always()