diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..f1ec75a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: build +on: [push, pull_request] + +jobs: + build: + strategy: + matrix: + go-version: [~1.15, ^1] + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + env: + GO111MODULE: "on" + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Download Go modules + run: go mod download + + - name: Build + run: go build -v ./... + + - name: Test + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2c0c604..0000000 --- a/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: go -go: - - 1.15 diff --git a/README.md b/README.md index 102e3f5..70bc315 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,8 @@ libraries. Thanks to those who have been early adopters with v0 and/or provided early feedback. -[Build-Status-Image]: https://travis-ci.org/go-fed/activity.svg?branch=master -[Build-Status-Url]: https://travis-ci.org/go-fed/activity +[Build-Status-Image]: https://github.com/go-fed/activity/workflows/build/badge.svg +[Build-Status-Url]: https://github.com/go-fed/activity/actions [Go-Reference-Image]: https://pkg.go.dev/badge/github.com/go-fed/activity [Go-Reference-Url]: https://pkg.go.dev/github.com/go-fed/activity [Go-Report-Card-Image]: https://goreportcard.com/badge/github.com/go-fed/activity