Skip to content

Commit 682e133

Browse files
committed
Fix coverage upload
1 parent 574d53e commit 682e133

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,19 @@ jobs:
5858
make
5959
make install DESTDIR=../../kcov-build
6060
cd ../.. && rm -rf kcov-master master.tar.gz
61-
ls -R ./kcov-build
62-
- name: Upload coverage
61+
- name: Generate coverage report
6362
if: ${{ matrix.coverage }}
6463
run: |
6564
for file in target/debug/lightning-*; do
6665
[ -x "${file}" ] || continue;
6766
mkdir -p "target/cov/$(basename $file)";
6867
./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file";
6968
done
70-
bash <(curl -s https://codecov.io/bash)
69+
- name: Upload coverage
70+
if: ${{ matrix.coverage }}
71+
- uses: codecov/codecov-action@v1
72+
with:
73+
fail_ci_if_error: true
7174

7275
fuzz:
7376
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)