Skip to content

Commit

Permalink
Update SonarQube version used for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Apr 20, 2024
1 parent 7cae5e0 commit d32e84e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand Down

0 comments on commit d32e84e

Please sign in to comment.