mirror of https://github.com/go-redis/redis.git
Add test coverage reporting and Codecov badge (#3055)
* Add codecov to ci * Add codecov to ci * update yanl * Add changes * Add changes * test * Add changes * Add changes * Add changes
This commit is contained in:
parent
00d98485f8
commit
f99447854b
|
@ -37,3 +37,9 @@ jobs:
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
|
- name: Upload to Codecov
|
||||||
|
uses: codecov/codecov-action@v4
|
||||||
|
with:
|
||||||
|
files: coverage.txt
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
1
Makefile
1
Makefile
|
@ -14,6 +14,7 @@ test: testdeps
|
||||||
go test ./... -short -race && \
|
go test ./... -short -race && \
|
||||||
go test ./... -run=NONE -bench=. -benchmem && \
|
go test ./... -run=NONE -bench=. -benchmem && \
|
||||||
env GOOS=linux GOARCH=386 go test && \
|
env GOOS=linux GOARCH=386 go test && \
|
||||||
|
go test -coverprofile=coverage.txt -covermode=atomic ./... && \
|
||||||
go vet); \
|
go vet); \
|
||||||
done
|
done
|
||||||
cd internal/customvet && go build .
|
cd internal/customvet && go build .
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
[![build workflow](https://github.com/redis/go-redis/actions/workflows/build.yml/badge.svg)](https://github.com/redis/go-redis/actions)
|
[![build workflow](https://github.com/redis/go-redis/actions/workflows/build.yml/badge.svg)](https://github.com/redis/go-redis/actions)
|
||||||
[![PkgGoDev](https://pkg.go.dev/badge/github.com/redis/go-redis/v9)](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
|
[![PkgGoDev](https://pkg.go.dev/badge/github.com/redis/go-redis/v9)](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
|
||||||
[![Documentation](https://img.shields.io/badge/redis-documentation-informational)](https://redis.uptrace.dev/)
|
[![Documentation](https://img.shields.io/badge/redis-documentation-informational)](https://redis.uptrace.dev/)
|
||||||
|
[![codecov](https://codecov.io/github/redis/go-redis/graph/badge.svg?token=tsrCZKuSSw)](https://codecov.io/github/redis/go-redis)
|
||||||
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)
|
[![Chat](https://discordapp.com/api/guilds/752070105847955518/widget.png)](https://discord.gg/rWtp5Aj)
|
||||||
|
|
||||||
> go-redis is brought to you by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace).
|
> go-redis is brought to you by :star: [**uptrace/uptrace**](https://github.com/uptrace/uptrace).
|
||||||
|
|
Loading…
Reference in New Issue