mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
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
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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 @@
|
|||||||
[](https://github.com/redis/go-redis/actions)
|
[](https://github.com/redis/go-redis/actions)
|
||||||
[](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
|
[](https://pkg.go.dev/github.com/redis/go-redis/v9?tab=doc)
|
||||||
[](https://redis.uptrace.dev/)
|
[](https://redis.uptrace.dev/)
|
||||||
|
[](https://codecov.io/github/redis/go-redis)
|
||||||
[](https://discord.gg/rWtp5Aj)
|
[](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…
x
Reference in New Issue
Block a user