Travis -> GitHub Actions
This commit is contained in:
@@ -0,0 +1,52 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
name: Test
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run linter
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
version: v1.35.2
|
||||||
|
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go-version: [1.14.x, 1.15.x]
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ matrix.go-version }}
|
||||||
|
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Restore cache
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-v1-go-
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
|
||||||
|
|
||||||
|
- name: Upload coverage report to Coveralls
|
||||||
|
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
|
||||||
|
uses: shogo82148/actions-goveralls@v1
|
||||||
|
with:
|
||||||
|
path-to-profile: coverage.out
|
||||||
-28
@@ -1,28 +0,0 @@
|
|||||||
language: go
|
|
||||||
go:
|
|
||||||
- 1.15.6
|
|
||||||
- tip
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- go: tip
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
recipients: dean.karn@gmail.com
|
|
||||||
on_success: change
|
|
||||||
on_failure: always
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- go get -u github.com/mattn/goveralls
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- go mod download
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make lint
|
|
||||||
- make test
|
|
||||||
|
|
||||||
after_success: |
|
|
||||||
[ $TRAVIS_GO_VERSION = 1.15.6 ] &&
|
|
||||||
go test ./... -covermode=count -coverprofile=coverage.out &&
|
|
||||||
goveralls -coverprofile=coverage.out -service travis-ci -repotoken $COVERALLS_TOKEN
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
Library webhooks
|
Library webhooks
|
||||||
================
|
================
|
||||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">
|
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png">
|
||||||
[](https://travis-ci.org/go-playground/webhooks)
|

|
||||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v6)
|
[](https://coveralls.io/github/go-playground/webhooks?branch=master)
|
||||||
[](https://goreportcard.com/report/go-playground/webhooks)
|
[](https://goreportcard.com/report/go-playground/webhooks)
|
||||||
[](https://godoc.org/github.com/go-playground/webhooks/v6)
|
[](https://godoc.org/github.com/go-playground/webhooks/v6)
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user