Skip to content

Commit 9d5e060

Browse files
committed
Setup codecov in CI workflow
1 parent 709fe00 commit 9d5e060

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ jobs:
2222
- name: Install Flow CLI
2323
run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)"
2424
- name: Run tests
25-
run: flow test --cover --covercode="contracts" tests/test_*.cdc
25+
run: flow test --cover --covercode="contracts" --coverprofile=coverage.lcov --tests/test_*.cdc
26+
- name: Upload coverage reports to Codecov
27+
uses: codecov/codecov-action@v3
28+
env:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage.lcov

0 commit comments

Comments
 (0)