Skip to content

Commit 35ae63d

Browse files
committed
Update CI workflow to use Codecov for coverage reporting
1 parent 91bebb0 commit 35ae63d

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ jobs:
2525

2626
- name: Run Unit tests
2727
run: |
28-
go test -race -covermode atomic -coverprofile=covprofile ./...
28+
go test -race -covermode atomic -coverprofile=coverage.txt ./...
2929
30-
- name: Install goveralls
31-
run: go install github.com/mattn/goveralls@latest
32-
33-
- name: Send coverage
34-
env:
35-
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
36-
run: goveralls -coverprofile=covprofile -service=github
30+
- name: Upload coverage reports to Codecov
31+
uses: codecov/codecov-action@v5
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Go](https://github.com/dhcgn/iot-ephemeral-value-store/actions/workflows/build_and_test.yml/badge.svg)](https://github.com/dhcgn/iot-ephemeral-value-store/actions/workflows/build_and_test.yml)
2-
[![Coverage Status](https://coveralls.io/repos/github/dhcgn/iot-ephemeral-value-store/badge.svg?branch=main)](https://coveralls.io/github/dhcgn/iot-ephemeral-value-store?branch=main)
2+
[![codecov](https://codecov.io/gh/dhcgn/iot-ephemeral-value-store/graph/badge.svg?token=LLTOitLLDc)](https://codecov.io/gh/dhcgn/iot-ephemeral-value-store)
33

44
# iot-ephemeral-value-store
55

0 commit comments

Comments
 (0)