Commit a2a98b9 1 parent 35351b3 commit a2a98b9 Copy full SHA for a2a98b9
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ jobs:
34
34
run : lcov --remove lcov.info 'test/*' 'script/*' --output-file lcov.info --rc branch_coverage=1 --rc derive_function_end_line=0
35
35
36
36
- name : Capture coverage output
37
- id : capture -coverage
38
- run : |
39
- COVERAGE_OUTPUT=$(zgosalvez/github-actions-report-lcov@v3 --coverage-files lcov.info)
40
- echo "new_coverage=$COVERAGE_OUTPUT" >> $GITHUB_ENV
37
+ id : new -coverage
38
+ uses : zgosalvez/github-actions-report-lcov@v3
39
+ with :
40
+ coverage-files : lcov.info
41
41
42
42
- name : Retrieve previous coverage
43
43
uses : actions/download-artifact@v2
56
56
- name : Compare previous coverage
57
57
run : |
58
58
old=$(cat coverage.info)
59
- new=$(echo $COVERAGE_OUTPUT)
59
+ new=${{ steps.new-coverage.outputs.total-coverage }}
60
60
if [ "$new" -lt "$old" ]; then
61
61
echo "Coverage decreased from $old to $new"
62
62
exit 1
You can’t perform that action at this time.
0 commit comments