diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bce31a..6ba13c5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/normalize_coverage_report.sh b/normalize_coverage_report.sh new file mode 100755 index 0000000..aa07498 --- /dev/null +++ b/normalize_coverage_report.sh @@ -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 \ No newline at end of file