Skip to content

Commit e4fd5f0

Browse files
committed
Merge branch 'public-release/v1.2.0-221' into public-release/v1.2.0-223
Signed-off-by: Uladzislau <[email protected]>
2 parents 1cc6e62 + 270ce87 commit e4fd5f0

File tree

1 file changed

+10
-34
lines changed

1 file changed

+10
-34
lines changed

.github/workflows/build.yml

+10-34
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
77

8-
name: Build + Test + Verify + Sonar
8+
name: Build + Test + Sonar + Verify
99

1010
on: [push, workflow_dispatch]
1111

@@ -78,7 +78,7 @@ jobs:
7878
name: ${{ steps.artifact.outputs.filename }}
7979
path: ./build/distributions/content/*/*
8080

81-
test:
81+
test_sonar:
8282
needs: [build]
8383
runs-on: ubuntu-latest
8484
steps:
@@ -113,6 +113,14 @@ jobs:
113113
name: code-coverage-report
114114
path: ${{ github.workspace }}/build/reports/kover/html
115115

116+
- name: SonarCloud scans
117+
continue-on-error: true
118+
uses: ./.github/actions/sonar
119+
env:
120+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
121+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
122+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
123+
116124
verify:
117125
if: ${{ contains(github.ref, 'refs/heads/release/') }}
118126
needs: [build]
@@ -155,35 +163,3 @@ jobs:
155163
with:
156164
name: plugin-verifier-report
157165
path: ${{ github.workspace }}/build/reports/pluginVerifier
158-
159-
sonar:
160-
needs: [test]
161-
runs-on: ubuntu-latest
162-
steps:
163-
164-
- name: Checkout the plugin GitHub repository
165-
uses: actions/checkout@v4
166-
167-
- name: Setup Java
168-
uses: actions/setup-java@v4
169-
with:
170-
distribution: zulu
171-
java-version: 17
172-
173-
- name: Setup Gradle
174-
uses: gradle/actions/setup-gradle@v3
175-
with:
176-
gradle-home-cache-cleanup: true
177-
178-
- name: Get tests result from artifacts
179-
uses: actions/download-artifact@v4
180-
with:
181-
name: tests-report
182-
path: ${{ github.workspace }}/build/reports/tests
183-
184-
- name: SonarCloud scans
185-
uses: ./.github/actions/sonar
186-
env:
187-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
188-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
189-
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}

0 commit comments

Comments
 (0)