diff --git a/.github/actions/check-coverage/acton.yml b/.github/actions/check-coverage/action.yml similarity index 100% rename from .github/actions/check-coverage/acton.yml rename to .github/actions/check-coverage/action.yml diff --git a/.github/workflows/test-run.yml b/.github/workflows/test-run.yml index ebee5b2..7ea602b 100644 --- a/.github/workflows/test-run.yml +++ b/.github/workflows/test-run.yml @@ -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 @@ -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" \ No newline at end of file + coverage-files: "**/coverage/jacoco.xml" diff --git a/pom.xml b/pom.xml index f72bd88..182e413 100644 --- a/pom.xml +++ b/pom.xml @@ -7,8 +7,8 @@ 1.0-SNAPSHOT test-coverage - 6 - 1.6 + 8 + 1.8 diff --git a/src/main/java/com/codescene/Calculator.java b/src/main/java/com/codescene/Calculator.java index 0ec910b..f89e223 100644 --- a/src/main/java/com/codescene/Calculator.java +++ b/src/main/java/com/codescene/Calculator.java @@ -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; + } }