fix: [P4PU-516] fix logic cf #336
Workflow file for this run
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: ARC - CodeReview | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Setup Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 | |
with: | |
distribution: 'corretto' | |
java-version: 17 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@e44258b109568baa0df60ed515909fc6c72cba92 #v2.3.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.organization=${{ vars.SONARCLOUD_ORG }} | |
-Dsonar.projectKey=${{ vars.SONARCLOUD_PROJECT_KEY }} | |
-Dsonar.projectName="${{ vars.SONARCLOUD_PROJECT_NAME }}" | |
-Dsonar.sources=src/main | |
-Dsonar.tests=src/test | |
-Dsonar.java.binaries=build/classes | |
-Dsonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/jacocoTestReport.xml | |
-Dsonar.coverage.exclusions=src/java/test/** |