Skip to content

Commit

Permalink
feat: Update README.md badges and CI coverage report (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
PokIsemaine committed Feb 6, 2023
1 parent 6e3e4f2 commit 69fd753
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ jobs:
- name: pretest
run: cd e2e/pretest && ./env_setup.sh
- name: Test
run: go test -v ./... -tags e2e
run: go test -v -coverprofile=profile.cov ./... -tags e2e
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls

- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github

e2e-test:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# K8s-gatekeeper
[TOC]
[![Go](https://github.com/casbin/k8s-gatekeeper/actions/workflows/ci.yml/badge.svg)](https://github.com/casbin/k8s-gatekeeper/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/casbin/k8s-gatekeeper/badge.svg?branch=master)](https://coveralls.io/github/casbin/k8s-gatekeeper?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/casbin/k8s-gatekeeper)](https://goreportcard.com/report/github.com/casbin/k8s-gatekeeper)
[![Godoc](https://godoc.org/github.com/casbin/k8s-gatekeeper?status.svg)](https://godoc.org/github.com/casbin/k8s-gatekeeper)
---

## 1.Overview
### 1.1 What is K8s-gatekeeper
K8s-gatekeeper is an admission webhook for k8s, using [Casbin](https://casbin.org/docs/en/overview) to apply arbitrary user-defined access control rules to help prevent any operation on k8s which administrator doesn't want.
Expand Down

0 comments on commit 69fd753

Please sign in to comment.