Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/test-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ jobs:
with:
path: coverage/
# TODO: this reusable action is something we could (should?) share with customers
- name: debug
run: |
env
#git log $(git rev-parse HEAD)
git log "origin/${GITHUB_HEAD_REF}"
- uses: ./.github/actions/check-coverage
# TODO: if all the jobs are skipped (or fail terribly) then we might not have any coverage files
# available for further processing, and the check-coverage step will fail
Expand All @@ -63,4 +68,4 @@ jobs:
# Include coverage files from all the artifacts (jobs)
# NOTE:: if only one component is analyzed then there's only a single coverage/lcov.info file
# not nested as if multiple components: coverage/features.lcov.info/lcov.info, coverage/cloud.worker.lcov.info/lcov.info, etc.
coverage-files: "**/coverage/jacoco.xml"
coverage-files: "**/coverage/jacoco.xml"
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<version>1.0-SNAPSHOT</version>
<name>test-coverage</name>
<properties>
<maven.compiler.source>6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/com/codescene/Calculator.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@ private double subtract(double firstOperand, double secondOperand) {
private double add(double firstOperand, double secondOperand) {
return firstOperand + secondOperand;
}

private double square(double theNumberToSquare) {
// tiny change
return theNumberToSquare * theNumberToSquare;
}
}
Loading