Skip to content

Commit

Permalink
Merge pull request #1657 from kubernetes-sigs/raffo/use-actions
Browse files Browse the repository at this point in the history
add a github action
  • Loading branch information
k8s-ci-robot committed Jul 2, 2020
2 parents a11414f + f81dfd5 commit 87f9a1b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 40 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.14
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Install CI
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0
make lint
- name: Coverage
uses: shogo82148/actions-goveralls@v1

- name: Test
run: make test


40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

0 comments on commit 87f9a1b

Please sign in to comment.