File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 53
53
steps :
54
54
- name : Check out repository
55
55
uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
56
+ with :
57
+ fetch-depth : 0
56
58
- uses : bufbuild/buf-setup-action@2211e06e8cf26d628cda2eea15c95f8c42b080b3
57
59
with :
58
60
github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -62,11 +64,25 @@ jobs:
62
64
java-version : " 17"
63
65
distribution : " temurin"
64
66
server-id : github
67
+ - name : Cache SonarCloud packages
68
+ uses : actions/cache@v4
69
+ with :
70
+ path : ~/.sonar/cache
71
+ key : ${{ runner.os }}-sonar
72
+ restore-keys : ${{ runner.os }}-sonar
73
+ - name : Cache Maven packages
74
+ uses : actions/cache@v4
75
+ with :
76
+ path : ~/.m2
77
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
78
+ restore-keys : ${{ runner.os }}-m2
65
79
- name : Maven Test Coverage
66
80
env :
81
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
82
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67
83
BUF_INPUT_HTTPS_USERNAME : opentdf-bot
68
84
BUF_INPUT_HTTPS_PASSWORD : ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
69
- run : mvn --batch-mode clean verify -P coverage
85
+ run : mvn --batch-mode clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=opentdf_java-sdk -P coverage
70
86
71
87
platform-integration :
72
88
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 297
297
</goals >
298
298
<configuration >
299
299
<dataFile >${project.parent.basedir} /target/jacoco.exec</dataFile >
300
+ <outputDirectory >${project.parent.basedir} /target/site/jacoco/</outputDirectory >
300
301
<formats >
301
302
<format >XML</format >
302
303
</formats >
You can’t perform that action at this time.
0 commit comments