Skip to content

Commit

Permalink
build: Update build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Jun 21, 2024
1 parent 8d5e548 commit 0baee38
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Build with Gradle
run: ./gradlew build publishToMavenLocal --build-cache

- name: Run zpa-checks integration tests
run: ./gradlew :zpa-checks:integrationTest --build-cache

- name: Build custom rules example
run: ./gradlew build -p plsql-custom-rules

Expand Down Expand Up @@ -71,16 +74,16 @@ jobs:
name: build-artifacts

- if: ${{ !contains(matrix.sqVersion, 'SNAPSHOT') }}
name: Run integration test
run: ./gradlew integrationTest -Dsonar.runtimeVersion=${{ matrix.sqVersion }} --info
name: Run plugin integration test
run: ./gradlew :sonar-zpa-plugin:integrationTest -Dsonar.runtimeVersion=${{ matrix.sqVersion }} --info

- if: ${{ contains(matrix.sqVersion, 'SNAPSHOT') }}
name: Run integration test
name: Run plugin integration test
run: |
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-${{ matrix.sqVersion }}.zip
./gradlew integrationTest -Dsonar.zipFile=sonar-application-${{ matrix.sqVersion }}.zip --info
./gradlew :sonar-zpa-plugin:integrationTest -Dsonar.zipFile=sonar-application-${{ matrix.sqVersion }}.zip --info
env:
AUTH_REPOSITORY: ${{ secrets.AUTH_REPOSITORY }}

Expand Down

0 comments on commit 0baee38

Please sign in to comment.