Skip to content

Commit

Permalink
build: replace travis-ci with ci via github actions (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi committed Oct 17, 2019
1 parent 731b8e3 commit b59392a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Test
on: [push, pull_request]
jobs:
build:
name: Go CI
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.12, 1.13]
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Check out source
uses: actions/checkout@v1
- name: Install Linters
run: "curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.21.0"
- name: Build
env:
GO111MODULE: "on"
run: go build ./...
- name: Test
env:
GO111MODULE: "on"
run: |
export PATH=${PATH}:$(go env GOPATH)/bin
sh ./goclean.sh
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

0 comments on commit b59392a

Please sign in to comment.