From 91511994bc4a4ba281920b25517a121840653cd2 Mon Sep 17 00:00:00 2001 From: Kaveh Mousavi Zamani Date: Wed, 8 Sep 2021 17:16:26 +0200 Subject: [PATCH 1/2] Move the CI to Github Actions --- .github/workflows/go.yml | 25 +++++++++++++++++++++++++ .travis.yml | 9 --------- README.md | 3 ++- 3 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/go.yml delete mode 100644 .travis.yml 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..91c59c3 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/kmzfs/pkg/profile/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 From 2ed8110672d7326759b971df74543a7166e81f13 Mon Sep 17 00:00:00 2001 From: Kaveh Mousavi Zamani Date: Wed, 8 Sep 2021 17:24:57 +0200 Subject: [PATCH 2/2] Fix the build badge url --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 91c59c3..30ad075 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ profile Simple profiling support package for Go -![Build Status](https://github.com/kmzfs/pkg/profile/workflows/go.yml/badge.svg?branch=master) +![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)