@@ -62,47 +62,29 @@ jobs:
6262 - uses : bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0
6363 with :
6464 github_token : ${{ secrets.GITHUB_TOKEN }}
65+ - name : Cache Maven packages
66+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
67+ with :
68+ path : ~/.m2
69+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
70+ restore-keys : ${{ runner.os }}-m2
6571 - name : Set up JDK
6672 uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
6773 with :
68- java-version : " 11 "
74+ java-version : " 17 "
6975 distribution : " adopt"
7076 server-id : github
7177 - name : Maven Verify
7278 run : mvn --batch-mode verify
7379 env :
7480 BUF_INPUT_HTTPS_USERNAME : opentdf-bot
7581 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
86- with :
87- github_token : ${{ secrets.GITHUB_TOKEN }}
88- - name : Set up JDK
89- uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
90- with :
91- java-version : " 17"
92- distribution : " temurin"
93- server-id : github
9482 - name : Cache SonarCloud packages
9583 uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
9684 with :
9785 path : ~/.sonar/cache
9886 key : ${{ runner.os }}-sonar
9987 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
10688 - name : Maven Test Coverage
10789 env :
10890 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
0 commit comments