Skip to content

Commit

Permalink
Update CI workflow to use Codecov for coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
dhcgn committed Dec 29, 2024
1 parent 91bebb0 commit 35ae63d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ jobs:

- name: Run Unit tests
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
go test -race -covermode atomic -coverprofile=coverage.txt ./...
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![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)
[![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)
[![codecov](https://codecov.io/gh/dhcgn/iot-ephemeral-value-store/graph/badge.svg?token=LLTOitLLDc)](https://codecov.io/gh/dhcgn/iot-ephemeral-value-store)

# iot-ephemeral-value-store

Expand Down

0 comments on commit 35ae63d

Please sign in to comment.