Skip to content

Commit aec727d

Browse files
author
Ignacio Bonafonte
committed
Fix codecov report by generating lcov file
1 parent 398f325 commit aec727d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/BuildAndTest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build and Test
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, workflow_dispatch]
44

55
jobs:
66
build:
@@ -15,5 +15,5 @@ jobs:
1515
run: |
1616
curl -Os https://uploader.codecov.io/latest/macos/codecov
1717
chmod +x codecov
18-
codecovpath=$(swift test --show-codecov-path)
19-
./codecov -f $codecovpath
18+
xcrun llvm-cov export -format="lcov" .build/debug/opentelemetry-swiftPackageTests.xctest/Contents/MacOS/opentelemetry-swiftPackageTests -instr-profile .build/debug/codecov/default.profdata > .build/debug/codecov/coverage_report.lcov
19+
./codecov -f .build/debug/codecov/coverage_report.lcov

0 commit comments

Comments
 (0)