diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..8f778fc --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,25 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + go: [ '1.13', '1.14', '1' ] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Go ${{ matrix.go }} + uses: actions/setup-go@v2 + with: + go-version: ${{ matrix.go }} + + - name: Test + run: go test -race ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0b895c9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: go -go_import_path: github.com/pkg/profile -go: - - 1.13.x - - 1.14.x - - tip - -script: - - go test -race github.com/pkg/profile diff --git a/README.md b/README.md index 8bae598..30ad075 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,8 @@ profile Simple profiling support package for Go -[![Build Status](https://travis-ci.org/pkg/profile.svg?branch=master)](https://travis-ci.org/pkg/profile) [![GoDoc](http://godoc.org/github.com/pkg/profile?status.svg)](http://godoc.org/github.com/pkg/profile) +![Build Status](https://github.com/pkg/profile/actions/workflows/go.yml/badge.svg?branch=master) +[![GoDoc](http://godoc.org/github.com/pkg/profile?status.svg)](http://godoc.org/github.com/pkg/profile) installation