Skip to content

Commit

Permalink
Add dependence from coveralls task to codeCoverageReport (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar authored Jan 14, 2022
1 parent 1feded6 commit 45e081e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions code-coverage-report/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 45e081e

Please sign in to comment.