From 6b96fb979566f69d6415aafbef30e7804ac42a44 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 | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afa50c11..11ae1aac 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: @@ -38,18 +38,17 @@ jobs: - name: Build custom rules example run: ./gradlew build -p plsql-custom-rules - - if: matrix.sqVersion != 'SNAPSHOT' + - if: ${{ !contains(matrix.sqVersion, 'SNAPSHOT') }} 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 }}