Skip to content

Commit

Permalink
CI: add code coverage action
Browse files Browse the repository at this point in the history
  • Loading branch information
njucjc committed Jul 22, 2022
1 parent 7cfcc40 commit b7f1254
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,17 @@ jobs:
${{ runner.os }}-buildx-
- name: Unit test
run: go test ./...
run: go test -v -short ./pkg/... ./cmd/... -coverprofile cover.out

- name: Publish Unit Test Coverage
uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
files: ./cover.out
fail_ci_if_error: true
verbose: true

- name: Docker meta
id: meta
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Raven

<div align="left">

[![Go Report Card](https://goreportcard.com/badge/github.com/openyurtio/raven)](https://goreportcard.com/report/github.com/openyurtio/raven)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![codecov](https://codecov.io/gh/openyurtio/raven/branch/main/graph/badge.svg)](https://codecov.io/gh/openyurtio/raven)

</div>

Raven is component of the OpenYurt to enhance cluster networking capabilities. This enhancement is focused on edge-edge and edge-cloud communication in OpenYurt. In short, it will provide layer 3 network connectivity among pods in different physical regions, as there are in one vanilla Kubernetes cluster.

## Architecture
Expand Down

0 comments on commit b7f1254

Please sign in to comment.