aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Sridharan <msridhar@gmail.com>2022-01-14 12:25:33 -0800
committerGitHub <noreply@github.com>2022-01-14 12:25:33 -0800
commit45e081e7674f389cbc051684227f396f193f9c50 (patch)
tree05baddee9e6d63f998501c85116f51d0f5878c78
parent1feded60c6c4423c3791cf84d9a166acfbce4201 (diff)
downloadnullaway-45e081e7674f389cbc051684227f396f193f9c50.tar.gz
Add dependence from coveralls task to codeCoverageReport (#552)
-rw-r--r--.github/workflows/continuous-integration.yml2
-rw-r--r--code-coverage-report/build.gradle6
2 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 9db301f..9de96ec 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 42011f7..acd5a74 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)