try to fix sonarqube reporting #13
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 Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Execute Gradle Build | |
run: ./gradlew build | |
- name: Execute Pitest | |
run: ./gradlew pitest | |
- name: Execute Sonarqube Scan | |
run: ./gradlew koverXmlReport koverHtmlReport koverBinaryReport sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }} | |
- name: Upload analysis results to GitHub | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: build/reports | |
wait-for-processing: true |