diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 21a1b3a707..d3864809b2 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -16,8 +16,6 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 - with: - fetch-depth: 0 - uses: teatimeguest/setup-texlive-action@v3.0.2 with: update-all-packages: true @@ -25,18 +23,14 @@ jobs: - uses: actions/setup-java@v4 with: java-version: 20 - distribution: 'zulu' - - uses: actions/cache@v4 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar + distribution: 'temurin' - uses: actions/cache@v4 with: - path: ~/.m2 + path: ~/.m2/repository key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - env: + CONVERT_PATH: /tmp/antlr4-to-bnf-converter GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: mvn --batch-mode verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pjacoco -Dsonar.qualitygate.wait=true + run: mvn install -Pjacoco --batch-mode --errors && mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.qualitygate.wait=true --batch-mode --errors