Skip to content

Commit

Permalink
ci: setup-gradle action uses deprecated 'arguments' parameter (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParanoidUser committed Jul 3, 2024
1 parent 71221e7 commit acc0e98
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,21 @@ jobs:
distribution: temurin
java-version: 17

- name: Test project
- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
with:
gradle-home-cache-cleanup: true
arguments: |
test jacocoTestReport -x processResources -x processTestResources
--parallel
--configuration-cache
--build-cache
--no-daemon
--scan
-DforkCount=${{ needs.fork.outputs.job_count }}

- name: Test project
run: |
./gradlew test jacocoTestReport -x processResources -x processTestResources \
--parallel \
--configuration-cache \
--build-cache \
--no-daemon \
--scan \
-DforkCount=${{ needs.fork.outputs.job_count }} \
-DforkSid=${{ matrix.job_sid }}
-Dsonar.gradle.skipCompile=true
- name: Pack fork artifacts
run: |
Expand Down Expand Up @@ -128,21 +129,23 @@ jobs:
distribution: temurin
java-version: 17

- name: Analyze code quality
- name: Setup Gradle
uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
with:
gradle-home-cache-cleanup: true
add-job-summary-as-pr-comment: always
arguments: |
sonar -x compileJava -x compileTestJava
--parallel
--configuration-cache
--build-cache
--no-daemon
--scan
-Pversion=${{ format('{0}+{1}', env.VERSION, github.RUN_NUMBER) }}
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=${{ secrets.SONAR_KEY }}
-Dsonar.qualitygate.wait=true

- name: Analyze code quality
run: |
./gradlew sonar -x compileJava -x compileTestJava \
--parallel \
--configuration-cache \
--build-cache \
--no-daemon \
--scan \
-Pversion=${{ format('{0}+{1}', env.VERSION, github.RUN_NUMBER) }} \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.token=${{ secrets.SONAR_TOKEN }} \
-Dsonar.organization=${{ secrets.SONAR_KEY }} \
-Dsonar.qualitygate.wait=true \
-Dsonar.gradle.skipCompile=true

0 comments on commit acc0e98

Please sign in to comment.