From 45e081e7674f389cbc051684227f396f193f9c50 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Fri, 14 Jan 2022 12:25:33 -0800 Subject: [PATCH] Add dependence from coveralls task to codeCoverageReport (#552) --- .github/workflows/continuous-integration.yml | 2 +- code-coverage-report/build.gradle | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 9db301f149..9de96ec8ef 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -66,7 +66,7 @@ jobs: env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} with: - arguments: codeCoverageReport coveralls + arguments: coveralls continue-on-error: true if: runner.os == 'Linux' && matrix.java == '11' && matrix.epVersion == '2.4.0' && github.repository == 'uber/NullAway' - name: Check that Git tree is clean after build and test diff --git a/code-coverage-report/build.gradle b/code-coverage-report/build.gradle index 42011f7311..acd5a74141 100644 --- a/code-coverage-report/build.gradle +++ b/code-coverage-report/build.gradle @@ -71,6 +71,12 @@ coveralls { } } +def coverallsTask = tasks.named('coveralls') + +coverallsTask.configure { + dependsOn 'codeCoverageReport' +} + // These dependencies indicate which projects have tests or tested code we want to include // when computing overall coverage. We aim to measure coverage for all code that actually ships // in a Maven artifact (so, e.g., we do not measure coverage for the jmh module)