From 99a85a2854d8fbb0d0286e64bc73e339180e6719 Mon Sep 17 00:00:00 2001 From: bhashinee Date: Mon, 27 May 2024 14:42:24 +0530 Subject: [PATCH] Fix the code cov --- .github/workflows/build-timestamped-master.yml | 15 +++++++++------ build.gradle | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-timestamped-master.yml b/.github/workflows/build-timestamped-master.yml index 980a1bd7b..a8657650e 100644 --- a/.github/workflows/build-timestamped-master.yml +++ b/.github/workflows/build-timestamped-master.yml @@ -11,7 +11,7 @@ jobs: if: github.repository_owner == 'ballerina-platform' steps: - uses: actions/checkout@v3 - - name: Set up JDK 17.0.7 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: distribution: 'adopt' @@ -30,9 +30,12 @@ jobs: env: packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }} packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }} + publishUser: ${{ secrets.BALLERINA_BOT_USERNAME }} + publishPAT: ${{ secrets.BALLERINA_BOT_TOKEN }} + CLIENT_ID: ${{ secrets.CLIENT_ID }} + CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} + REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} run: | - ./gradlew clean build --stacktrace --scan --console=plain - ./gradlew publish --scan - ./gradlew codeCoverageReport - # - name: Generate CodeCov Report - # uses: codecov/codecov-action@v1 + ./gradlew clean build publish --stacktrace --scan --console=plain + - name: Generate CodeCov Report + uses: codecov/codecov-action@v1 diff --git a/build.gradle b/build.gradle index cb2462556..9943afcfd 100644 --- a/build.gradle +++ b/build.gradle @@ -127,6 +127,7 @@ tasks.withType(JavaCompile) { } task codeCoverageReport(type: JacocoReport) { + dependsOn = subprojects.test executionData fileTree(project.rootDir.absolutePath).include("**/build/coverage-reports/*.exec")