File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -69,16 +69,14 @@ jobs:
6969 cargo install cargo-llvm-cov --version 0.6.15
7070
7171 - name : Generate code coverage
72- run : cargo llvm-cov --package renamify-core --lcov --output-path lcov.info
72+ run : cargo llvm-cov --workspace --lcov --output-path lcov.info
7373
7474 - name : Check coverage threshold
7575 run : |
76- # TODO - Collect coverage from CLI integration tests too
77- # Actual coverage is higher than this.
78- COVERAGE_THRESHOLD=75
76+ COVERAGE_THRESHOLD=85
7977
8078 # Run coverage and capture output
81- COVERAGE_OUTPUT=$(cargo llvm-cov --package renamify-core 2>&1)
79+ COVERAGE_OUTPUT=$(cargo llvm-cov --workspace 2>&1)
8280 echo "$COVERAGE_OUTPUT"
8381
8482 # Extract coverage percentage from the TOTAL line
9492 echo "Coverage meets ${COVERAGE_THRESHOLD}% threshold: ${COVERAGE}%"
9593
9694 - name : Generate HTML report
97- run : cargo llvm-cov --package renamify-core --html
95+ run : cargo llvm-cov --workspace --html
9896
9997 - name : Upload coverage report
10098 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments