@@ -62,47 +62,24 @@ jobs:
6262 - uses : bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
6363 with :
6464 github_token : ${{ secrets.GITHUB_TOKEN }}
65- - name : Set up JDK
66- uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
67- with :
68- java-version : " 11"
69- distribution : " adopt"
70- server-id : github
71- - name : Maven Verify
72- run : mvn --batch-mode verify
73- env :
74- BUF_INPUT_HTTPS_USERNAME : opentdf-bot
75- BUF_INPUT_HTTPS_PASSWORD : ${{ secrets.PERSONAL_ACCESS_TOKEN_OPENTDF }}
76-
77- sonarcloud :
78- name : SonarCloud Scan
79- runs-on : ubuntu-22.04
80- steps :
81- - name : Check out repository
82- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
83- with :
84- fetch-depth : 0
85- - uses : bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
65+ - name : Cache Maven packages
66+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
8667 with :
87- github_token : ${{ secrets.GITHUB_TOKEN }}
68+ path : ~/.m2
69+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
70+ restore-keys : ${{ runner.os }}-m2
8871 - name : Set up JDK
8972 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
9073 with :
9174 java-version : " 17"
92- distribution : " temurin "
75+ distribution : " adopt "
9376 server-id : github
9477 - name : Cache SonarCloud packages
9578 uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
9679 with :
9780 path : ~/.sonar/cache
9881 key : ${{ runner.os }}-sonar
9982 restore-keys : ${{ runner.os }}-sonar
100- - name : Cache Maven packages
101- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
102- with :
103- path : ~/.m2
104- key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
105- restore-keys : ${{ runner.os }}-m2
10683 - name : Maven Test Coverage
10784 env :
10885 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
12299 - name : Set up JDK
123100 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
124101 with :
125- java-version : " 11 "
102+ java-version : " 17 "
126103 distribution : " adopt"
127104 server-id : github
128105 - name : Build java SDK
@@ -345,7 +322,6 @@ jobs:
345322 - platform-integration
346323 - platform-xtest
347324 - mavenverify
348- - sonarcloud
349325 - pr
350326 runs-on : ubuntu-latest
351327 if : always()
0 commit comments