diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..fbffbe6 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +name: test +on: + push: + branches: + - master + pull_request: + branches: + - master +jobs: + build: + name: go + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + go: ['1.13', '1.14', '1.15'] + steps: + - name: setup + uses: actions/setup-go@v2 + with: + go-version: ${{matrix.go}} + + - name: checkout + uses: actions/checkout@v2 + + - name: tools + run: go get golang.org/x/lint/golint + + - name: test + run: make diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5377ef..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: go -go: - - "1.12.x" - - "1.13.x" - - "1.14.x" -install: - - go get golang.org/x/lint/golint - - go get -v -t . -script: - - make -notifications: - email: change diff --git a/README.md b/README.md index ab7b701..a69738e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Sling [![Build Status](https://travis-ci.org/dghubble/sling.svg?branch=master)](https://travis-ci.org/dghubble/sling) [![GoDoc](https://godoc.org/github.com/dghubble/sling?status.svg)](https://godoc.org/github.com/dghubble/sling) +# Sling [![Build Status](https://github.com/dghubble/sling/workflows/test/badge.svg)](https://github.com/dghubble/oauth1/actions?query=workflow%3Atest+branch%3Amaster) [![Coverage](https://gocover.io/_badge/github.com/dghubble/sling)](https://gocover.io/github.com/dghubble/sling) [![GoDoc](https://godoc.org/github.com/dghubble/sling?status.svg)](https://godoc.org/github.com/dghubble/sling) + Sling is a Go HTTP client library for creating and sending API requests.