Skip to content

Commit 6415d5c

Browse files
author
Ignacio Bonafonte
committed
Add codecov output
1 parent 4888169 commit 6415d5c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/BuildAndTest.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Build for macOS
13-
run: swift build
14-
- name: Test for macOS
15-
run: swift test
12+
- name: Build and Test for macOS
13+
run: swift test --enable-code-coverage
14+
- name: Upload Code coverage
15+
run: |
16+
curl -Os https://uploader.codecov.io/latest/macos/codecov
17+
chmod +x codecov
18+
codecovpath=$(swift test --show-codecov-path)
19+
./codecov -f $codecovpath

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# opentelemetry-swift
22

33
[![CI](https://github.com/open-telemetry/opentelemetry-swift/actions/workflows/BuildAndTest.yml/badge.svg)](https://github.com/open-telemetry/opentelemetry-swift/actions/workflows/BuildAndTest.yml?query=branch%3Amain+)
4+
[![codecov](https://codecov.io/gh/open-telemetry/opentelemetry-swift/branch/master/graph/badge.svg)](https://codecov.io/gh/open-telemetry/opentelemetry-swift)
5+
46

57

68
A swift [OpenTelemetry](https://opentelemetry.io/) client

0 commit comments

Comments
 (0)