Migrate analysis cache from SQLite to H2 for virtual thread compatibi… #19
Workflow file for this run
This file contains hidden or 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: SonarCloud Java | |
| on: | |
| push: | |
| branches: [java] | |
| paths: ['src/**', 'pom.xml'] | |
| pull_request: | |
| branches: [java] | |
| jobs: | |
| sonar: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '25' | |
| cache: 'maven' | |
| - name: Build and generate coverage | |
| run: mvn clean verify -B | |
| - name: SonarCloud analysis | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| run: > | |
| mvn sonar:sonar -B | |
| -Dsonar.projectKey=RandomCodeSpace_code-iq-java | |
| -Dsonar.organization=randomcodespace | |
| -Dsonar.host.url=https://sonarcloud.io |