Skip to content

Commit 7561530

Browse files
authored
Update release.yml
1 parent 16d6029 commit 7561530

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ jobs:
2222
uses: joschi/setup-jdk@v2
2323
with:
2424
java-version: '15'
25-
25+
26+
- name: Cache SonarCloud packages
27+
uses: actions/cache@v1
28+
with:
29+
path: ~/.sonar/cache
30+
key: ${{ runner.os }}-sonar
31+
restore-keys: ${{ runner.os }}-sonar
2632
# - name: replace group id
2733
# if: success()
2834
# run: find . -name "pom.xml" | xargs sed -i "s/<groupId>com.cloudimpl<\/groupId>/<groupId>com.github.cloudimpl<\/groupId>/g"
@@ -72,7 +78,12 @@ jobs:
7278
# env:
7379
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
7480
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
75-
81+
- name: Build and analyze
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
84+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
85+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=cloudimpl_outstack
86+
7687
- name: Create Release
7788
if: success() && github.event_name == 'push'
7889
id: create_release

0 commit comments

Comments
 (0)