diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..24b4b3f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Rollbar-go CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-16.04 + strategy: + matrix: + go-version: + - '1.7' + - '1.8' + - '1.9' + - '1.10' + - '1.11' + - '1.12' + - '1.13' + - '1.14' + - '1.15' + + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install go + uses: actions/setup-go@v2 + with: + node-version: ${{ matrix.go-version }} + + - name: Run tests + run: go test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a7b8ca9..0000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go - -go: - - 1.7.x - - 1.8.x - - 1.9.x - - 1.10.x - - 1.11.x - - 1.12.x - - 1.13.x - - master - -matrix: - allow_failures: - go: 1.7.x diff --git a/README.md b/README.md index 93098f9..2b73a62 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # rollbar-go -[![Build Status](https://travis-ci.org/rollbar/rollbar-go.svg?branch=master)](https://travis-ci.org/rollbar/rollbar-go) +![Build Status](https://github.com/rollbar/rollbar-go/workflows/Rollbar-go%20CI/badge.svg?branch=master) [Rollbar](https://rollbar.com) is a real-time exception reporting service for Go and other languages. The Rollbar service will alert you of problems with your code @@ -16,7 +16,7 @@ or allocated, we use the stack information from where the error was reported. # Setup Instructions and Usage 1. [Sign up for a Rollbar account](https://rollbar.com/signup) -2. Follow the [Usage](https://docs.rollbar.com/docs/go#usage) example in our [Go SDK docs](https://docs.rollbar.com/docs/go) +2. Follow the [Usage](https://docs.rollbar.com/docs/go#usage) example in our [Go SDK docs](https://docs.rollbar.com/docs/go) to get started for your platform. # Documentation @@ -54,4 +54,4 @@ and extended. Those two libraries diverged as features were added independently official library is actually a fork of the Heroku fork with some git magic to make it appear as a standalone repository along with all of that history. We then also went back to the original stvp library and brought over most of the divergent changes. Since then we have moved forward to add more -functionality to this library and it is the recommended notifier for Go going forward. \ No newline at end of file +functionality to this library and it is the recommended notifier for Go going forward.