mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2024-12-22 11:06:04 +00:00
Use Github actions instead of travis (#270)
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
parent
86ed6ec102
commit
942e753f87
25
.github/workflows/ci.yaml
vendored
Normal file
25
.github/workflows/ci.yaml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: ci
|
||||||
|
on: [push, pull_request]
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '^1.16'
|
||||||
|
- run: go version
|
||||||
|
- run: go get github.com/mattn/goveralls
|
||||||
|
env:
|
||||||
|
GO111MODULE: off
|
||||||
|
- run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}
|
||||||
|
env:
|
||||||
|
GOLANGCI_RELEASE: v1.37.0
|
||||||
|
- run: make build.docker
|
||||||
|
- run: make test
|
||||||
|
- run: make check
|
||||||
|
- run: goveralls -coverprofile=profile.cov -service=github
|
||||||
|
env:
|
||||||
|
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
build/
|
build/
|
||||||
apiserver.local.config/
|
apiserver.local.config/
|
||||||
.idea/
|
.idea/
|
||||||
|
profile.cov
|
||||||
vendor/
|
vendor/
|
||||||
|
20
.travis.yml
20
.travis.yml
@ -1,20 +0,0 @@
|
|||||||
language: go
|
|
||||||
dist: xenial
|
|
||||||
|
|
||||||
go:
|
|
||||||
- "1.14.x"
|
|
||||||
|
|
||||||
env:
|
|
||||||
- GO111MODULE=on GOLANGCI_RELEASE="v1.21.0"
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- GO111MODULE=off go get github.com/mattn/goveralls
|
|
||||||
- GO111MODULE=off go get github.com/lawrencewoodman/roveralls
|
|
||||||
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_RELEASE}
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make test
|
|
||||||
- make build.docker
|
|
||||||
- make check
|
|
||||||
- roveralls
|
|
||||||
- goveralls -v -coverprofile=roveralls.coverprofile -service=travis-ci
|
|
Loading…
x
Reference in New Issue
Block a user