Skip to content

Commit 0cf5fa8

Browse files
committed
Revert "upload entire coverage report directory, and remove coverage threshold check pending cequence-io#24"
This reverts commit 6420245.
1 parent f5ac124 commit 0cf5fa8

File tree

1 file changed

+31
-25
lines changed

1 file changed

+31
-25
lines changed

.github/workflows/continuous-integration.yml

+31-25
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ jobs:
4747
- name: Build & Test
4848
run: sbt ++${{ matrix.scala }} clean testWithCoverage
4949

50-
- name: Upload coverage report (all)
50+
- name: Upload coverage report (Cobertura)
5151
uses: actions/[email protected]
5252
with:
53-
name: coverage-report-${{ matrix.scala }}
54-
path: ${{github.workspace}}/target/scala-${{ matrix.scala }}/coverage-report
53+
name: cobertura.xml
54+
path: ${{github.workspace}}/target/scala-${{ matrix.scala }}/coverage-report/cobertura.xml
55+
56+
- name: Upload coverage report (HTML)
57+
uses: actions/[email protected]
58+
with:
59+
name: scoverage-report-html
60+
path: ${{github.workspace}}/target/scala-${{ matrix.scala }}/scoverage-report/
5561

5662
optional-build:
5763
name: Build (Optional)
@@ -86,28 +92,28 @@ jobs:
8692
- name: Perform Build / Test
8793
run: sbt ++${{ matrix.scala }} clean compile test
8894

89-
# coverage:
90-
# name: Coverage Report
91-
# if: ${{ github.event.pull_request }}
92-
# needs: [ build ]
93-
# runs-on: ubuntu-latest
94-
# steps:
95-
# - uses: actions/download-artifact@v3
96-
# with:
97-
# name: cobertura.xml
98-
#
99-
# - name: Analyzing coverage report
100-
# uses: 5monkeys/cobertura-action@master
101-
# with:
102-
# path: cobertura.xml
103-
# only_changed_files: true
104-
# fail_below_threshold: true
105-
# show_missing: true
106-
# show_line: true
107-
# show_branch: true
108-
# show_class_names: true
109-
# link_missing_lines: true
110-
# minimum_coverage: 75
95+
coverage:
96+
name: Coverage Report
97+
if: ${{ github.event.pull_request }}
98+
needs: [ build ]
99+
runs-on: ubuntu-latest
100+
steps:
101+
- uses: actions/download-artifact@v3
102+
with:
103+
name: cobertura.xml
104+
105+
- name: Analyzing coverage report
106+
uses: 5monkeys/cobertura-action@master
107+
with:
108+
path: cobertura.xml
109+
only_changed_files: true
110+
fail_below_threshold: true
111+
show_missing: true
112+
show_line: true
113+
show_branch: true
114+
show_class_names: true
115+
link_missing_lines: true
116+
minimum_coverage: 75
111117

112118
ready-to-merge:
113119
name: Ready to Merge

0 commit comments

Comments
 (0)