Skip to content

Commit 464358c

Browse files
authored
Enable coverage (#28)
* enabled coverage report * added codecov to ci * upgraded codecov to v2 * version updates * update worfklow
1 parent 467818e commit 464358c

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/scala.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ jobs:
1919
java-version: '8'
2020
distribution: 'adopt'
2121
- name: Run tests
22-
run: sbt clean test
22+
run: sbt coverage test
23+
- name: Coverage Report
24+
run: sbt coverageReport
25+
- name: "Upload coverage to Codecov"
26+
uses: "codecov/codecov-action@v2"
27+
with:
28+
fail_ci_if_error: true

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ project/project/
99
project/target/
1010
*.DS_Store
1111
/target/
12-
/project/build.properties
12+
/project/build.properties
13+
/src/main/scala/com/databricks/labs/validation/LocalTest.scala

project/plugins.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.0.3")
22
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
3-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
3+
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
4+
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
5+
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
6+
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")

0 commit comments

Comments
 (0)