diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c1b4a2f..3b991fa 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -19,21 +19,21 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' - name: Setup Gradle to generate and submit dependency graphs - uses: gradle/gradle-build-action@v2.9.0 + uses: gradle/actions/setup-gradle@v3 with: dependency-graph: generate-and-submit - name: Build with Gradle - run: ./gradlew build integrationTest bootBuildImage + run: ./gradlew build testCodeCoverageReport integrationTestCodeCoverageReport integrationTest bootBuildImage env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run sonar analysis with Gradle - run: ./gradlew testCodeCoverageReport integrationTestCodeCoverageReport sonar + run: ./gradlew sonar env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}