Skip to content

Commit ef23628

Browse files
committed
Added codecov upload bash script
1 parent 9e7ca6d commit ef23628

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ jobs:
1717
- run: npm ci
1818
- run: npm run test
1919
- run: npm run build
20+
- name: Uploading test coverage reports
21+
run: |
22+
chmod +x "${GITHUB_WORKSPACE}/scripts/codecov.sh"
23+
"${GITHUB_WORKSPACE}/scripts/codecov.sh"

scripts/codecov.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
codecov_file="${GITHUB_WORKSPACE}/scripts/codecov.sh"
4+
5+
curl -s https://codecov.io/bash > $codecov_file
6+
chmod +x $codecov_file
7+
8+
file="${GITHUB_WORKSPACE}/coverage/lcov.info"
9+
$codecov_file -f $file -v -t $CODECOV_TOKEN

0 commit comments

Comments
 (0)