mirror of
https://github.com/int128/kubelogin.git
synced 2026-02-14 16:39:51 +00:00
Add codecov (#83)
This commit is contained in:
@@ -21,6 +21,7 @@ jobs:
|
|||||||
# workaround for https://github.com/golang/go/issues/27925
|
# workaround for https://github.com/golang/go/issues/27925
|
||||||
- run: sed -e '/^k8s.io\/client-go /d' -i go.sum
|
- run: sed -e '/^k8s.io\/client-go /d' -i go.sum
|
||||||
- run: make check
|
- run: make check
|
||||||
|
- run: bash <(curl -s https://codecov.io/bash)
|
||||||
- run: make run
|
- run: make run
|
||||||
- run: |
|
- run: |
|
||||||
if [ "$CIRCLE_TAG" ]; then
|
if [ "$CIRCLE_TAG" ]; then
|
||||||
|
|||||||
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,5 +1,9 @@
|
|||||||
/.idea
|
/.idea
|
||||||
|
|
||||||
|
/.kubeconfig*
|
||||||
|
|
||||||
/dist
|
/dist
|
||||||
|
/coverage.out
|
||||||
|
|
||||||
/kubelogin
|
/kubelogin
|
||||||
/kubectl-oidc_login
|
/kubectl-oidc_login
|
||||||
/.kubeconfig*
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -10,7 +10,7 @@ all: $(TARGET)
|
|||||||
check:
|
check:
|
||||||
golangci-lint run
|
golangci-lint run
|
||||||
$(MAKE) -C adaptors_test/keys/testdata
|
$(MAKE) -C adaptors_test/keys/testdata
|
||||||
go test -v -race ./...
|
go test -v -race -cover -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
$(TARGET): $(wildcard *.go)
|
$(TARGET): $(wildcard *.go)
|
||||||
go build -o $@ -ldflags "$(LDFLAGS)"
|
go build -o $@ -ldflags "$(LDFLAGS)"
|
||||||
|
|||||||
Reference in New Issue
Block a user