From 631b2bf3ec8eac6a63c5016c3c51a9a24bd37831 Mon Sep 17 00:00:00 2001 From: Firas Darwish Date: Wed, 28 Feb 2024 16:42:11 +0300 Subject: [PATCH] added Codecov integration to workflow --- .github/workflows/go.yml | 3 +++ README.md | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 67277cb..cd99bf6 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -27,6 +27,9 @@ jobs: - name: Test run: go test -v ./... + - name: Run coverage + run: go test -race -coverprofile=coverage.out -covermode=atomic + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: diff --git a/README.md b/README.md index fca9b67..831ffbd 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ [![Go Reference](https://pkg.go.dev/badge/github.com/firasdarwish/ore.svg)](https://pkg.go.dev/github.com/firasdarwish/ore) [![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go?tab=readme-ov-file#dependency-injection) [![Maintainability](https://api.codeclimate.com/v1/badges/3bd6f2fa4390af7c8faa/maintainability)](https://codeclimate.com/github/firasdarwish/ore/maintainability) -[![Test Coverage](https://api.codeclimate.com/v1/badges/3bd6f2fa4390af7c8faa/test_coverage)](https://codeclimate.com/github/firasdarwish/ore/test_coverage) - +[![codecov](https://codecov.io/gh/firasdarwish/ore/graph/badge.svg?token=ISZVCCYGCR)](https://codecov.io/gh/firasdarwish/ore) ![ore](https://github.com/firasdarwish/ore/assets/1930361/c1426ba1-777a-43f5-8a9a-7520caa45516)