Skip to content

Commit

Permalink
ci: add codecov (#111)
Browse files Browse the repository at this point in the history
* ci: add codecov

* ci: add caching for envtest binaries

* chore: add badge

* ci(codecov): add some ignored paths

---------

Co-authored-by: spoukke <sacha.bernheim@hey.com>
  • Loading branch information
Alan-pad and spoukke authored May 9, 2023
1 parent 1be634d commit 58e44b3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache envtest binaries
uses: actions/cache@v3
with:
path: ./bin/
key: binaries
- name: Setup Golang
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: "1.19"
- name: Install envtest
Expand All @@ -27,6 +32,8 @@ jobs:
run: ./bin/setup-envtest use
- name: Run tests
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

check-codegen:
name: Check Codegen
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Go Report Card](https://goreportcard.com/badge/github.com/padok-team/burrito)](https://goreportcard.com/report/github.com/padok-team/burrito)
[![codecov](https://codecov.io/gh/padok-team/burrito/branch/main/graph/badge.svg)](https://codecov.io/gh/padok-team/burrito)

<p align="center"><img src="./docs/assets/icon/burrito.png" width="200px" /></p>

Expand Down
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ignore:
- "api/zz_generated_deepcopy.go"
- "main.go"
- "cmd"

0 comments on commit 58e44b3

Please sign in to comment.