diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..b61654d --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,57 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + name: Build + Test Stable + runs-on: ubuntu-latest + env: + GO111MODULE: auto + steps: + + - name: Build + uses: actions/setup-go@v2 + with: + go-version: '1.17.x' + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Get Coverage + run: go get golang.org/x/tools/cmd/cover + + - name: Build + run: go build -v ./... + + - name: Test + run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic + + - name: Coverage + uses: codecov/codecov-action@v2 + + build-legacy: + name: Build + Test Previous Stable + runs-on: ubuntu-latest + env: + GO111MODULE: auto + steps: + + - name: Build + uses: actions/setup-go@v2 + with: + go-version: '1.16.x' + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test ./... diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0783aaa..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: go -sudo: false -go: - - 1.7.x - - 1.8.x - - 1.9.x - - 1.10.x - - 1.11.x - - 1.12.x - - tip -matrix: - allow_failures: - - go: tip - fast_finish: true -before_install: - - go get golang.org/x/tools/cmd/cover -script: - - go test ./... -race -coverprofile=coverage.txt -covermode=atomic -after_success: - - bash <(curl -s https://codecov.io/bash) -notifications: - email: false