From 93fea30a9c3a357cfe76d31d1a84b6b367d69df7 Mon Sep 17 00:00:00 2001 From: Felipe Zorzo Date: Sat, 20 Apr 2024 19:56:31 -0300 Subject: [PATCH] Update SonarQube version used for integration tests --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afa50c11..cc3c1165 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,8 +17,8 @@ jobs: matrix: sqVersion: - LATEST_RELEASE[9.9] - - LATEST_RELEASE[10.4] - - SNAPSHOT + - LATEST_RELEASE[10.5] + - 10.6-SNAPSHOT steps: - uses: actions/checkout@v4 with: @@ -42,14 +42,13 @@ jobs: name: Run integration test run: ./gradlew integrationTest -Dsonar.runtimeVersion=${{ matrix.sqVersion }} --info - - if: matrix.sqVersion == 'SNAPSHOT' + - if: contains(matrix.sqVersion, 'SNAPSHOT') name: Run integration test run: | - SQ_VERSION=10.5 - curl -s -L "https://nexus.felipezorzo.com.br/service/rest/v1/search/assets/download?repository=maven-snapshots&maven.groupId=org.sonarsource.sonarqube&maven.artifactId=sonar-application&maven.extension=zip&sort=version&maven.baseVersion=$SQ_VERSION-SNAPSHOT" \ + curl -s -L "https://nexus.felipezorzo.com.br/service/rest/v1/search/assets/download?repository=maven-snapshots&maven.groupId=org.sonarsource.sonarqube&maven.artifactId=sonar-application&maven.extension=zip&sort=version&maven.baseVersion=${{ matrix.sqVersion }}" \ -u "$AUTH_REPOSITORY" \ - -o sonar-zpa-plugin/sonar-application-$SQ_VERSION.zip - ./gradlew integrationTest -Dsonar.zipFile=sonar-application-$SQ_VERSION.zip --info + -o sonar-zpa-plugin/sonar-application-${{ matrix.sqVersion }}.zip + ./gradlew integrationTest -Dsonar.zipFile=sonar-application-${{ matrix.sqVersion }}.zip --info env: AUTH_REPOSITORY: ${{ secrets.AUTH_REPOSITORY }}