Skip to content

Commit

Permalink
add coverage normalization script
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed Dec 5, 2023
1 parent 841bf93 commit 20cbca6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.8.0
- name: Run tests
run: make ci
- name: Normalize coverage report filepaths
run : sh ./normalize_coverage_report.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
5 changes: 5 additions & 0 deletions normalize_coverage_report.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sed -i 's/A.0000000000000007.StagedContractUpdates/contracts\/StagedContractUpdates.cdc/' coverage.lcov
sed -i 's/A.0000000000000008.Foo/contracts\/Foo.cdc/' coverage.lcov
sed -i 's/A.0000000000000009.A/contracts\/A.cdc/' coverage.lcov
sed -i 's/A.0000000000000010.B/contracts\/B.cdc/' coverage.lcov
sed -i 's/A.0000000000000010.C/contracts\/C.cdc/' coverage.lcov

0 comments on commit 20cbca6

Please sign in to comment.