-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add in sonar task for hooking into SonarCloud
- Loading branch information
1 parent
e9ea0fa
commit 9bee654
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Build cwms-data-api-client | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
@@ -18,6 +17,12 @@ jobs: | |
java-version: '21' | ||
java-package: jdk | ||
distribution: 'temurin' | ||
- name: Cache SonarCloud packages | ||
uses: actions/[email protected] | ||
with: | ||
path: ~/.sonar/cache | ||
key: ${{ runner.os }}-sonar | ||
restore-keys: ${{ runner.os }}-sonar | ||
- name: build and test | ||
id: thebuild | ||
run: ./gradlew build --info --init-script init.gradle | ||
|
@@ -26,6 +31,11 @@ jobs: | |
with: | ||
dotnet-version: 6.x | ||
dotnet-quality: 'ga' | ||
- name: Analyze | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
run: ./gradlew sonar | ||
- name: ReportGenerator | ||
uses: danielpalme/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters