File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 24
24
uses : actions/checkout@v3
25
25
with :
26
26
token : ${{ secrets.BUMP_PAT }}
27
+ fetch-depth : 0 # For Sonar blame information
27
28
28
29
- name : Set up Java
29
30
uses : actions/setup-java@v3
41
42
with :
42
43
commit-message : " [skip ci] Bump version to"
43
44
44
- - name : Package with Maven
45
- run : mvn package -B -P prod "-Dmaven.test.skip" "-Dstyle.color=always"
45
+ - name : Verify with Maven
46
+ env :
47
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
48
+ run : |
49
+ REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
50
+
51
+ mvn verify -B -P prod,coverage "-Dstyle.color=always" \
52
+ org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
53
+ -Dsonar.host.url="https://sonarcloud.io" \
54
+ -Dsonar.organization=soat-tech-challenge \
55
+ -Dsonar.projectKey=soat-tech-challenge_$REPO_NAME
46
56
47
57
- name : Login to Docker Hub
48
58
uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments