File tree Expand file tree Collapse file tree 3 files changed +54
-30
lines changed Expand file tree Collapse file tree 3 files changed +54
-30
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - master
5
+ pull_request :
6
+
7
+ name : Test
8
+ jobs :
9
+ lint :
10
+ name : Lint
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Check out code
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Run linter
17
+ uses : golangci/golangci-lint-action@v2
18
+ with :
19
+ version : v1.35.2
20
+
21
+ test :
22
+ name : Test
23
+ strategy :
24
+ matrix :
25
+ go-version : [1.14.x, 1.15.x]
26
+ os : [ubuntu-latest, macos-latest, windows-latest]
27
+ runs-on : ${{ matrix.os }}
28
+ steps :
29
+ - name : Install Go
30
+ uses : actions/setup-go@v2
31
+ with :
32
+ go-version : ${{ matrix.go-version }}
33
+
34
+ - name : Checkout code
35
+ uses : actions/checkout@v2
36
+
37
+ - name : Restore cache
38
+ uses : actions/cache@v2
39
+ with :
40
+ path : ~/go/pkg/mod
41
+ key : ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-v1-go-
44
+
45
+ - name : Run tests
46
+ run : go test -race -covermode=atomic -coverprofile=coverage.out ./...
47
+
48
+ - name : Upload coverage report to Coveralls
49
+ if : matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
50
+ uses : shogo82148/actions-goveralls@v1
51
+ with :
52
+ path-to-profile : coverage.out
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
Library webhooks
2
2
================
3
3
<img align =" right " src =" https://raw.githubusercontent.com/go-playground/webhooks/v6/logo.png " >![ Project status] ( https://img.shields.io/badge/version-6.0.0-green.svg )
4
- [ ![ Build Status ] ( https://travis-ci.org /go-playground/webhooks.svg?branch=v6 )] ( https://travis-ci.org/go-playground/webhooks )
5
- [ ![ Coverage Status] ( https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v6 &service=github )] ( https://coveralls.io/github/go-playground/webhooks?branch=v6 )
4
+ ![ Test ] ( https://github.com /go-playground/webhooks/workflows/Test/badge .svg?branch=master )
5
+ [ ![ Coverage Status] ( https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=master &service=github )] ( https://coveralls.io/github/go-playground/webhooks?branch=master )
6
6
[ ![ Go Report Card] ( https://goreportcard.com/badge/go-playground/webhooks )] ( https://goreportcard.com/report/go-playground/webhooks )
7
7
[ ![ GoDoc] ( https://godoc.org/github.com/go-playground/webhooks/v6?status.svg )] ( https://godoc.org/github.com/go-playground/webhooks/v6 )
8
8
![ License] ( https://img.shields.io/dub/l/vibe-d.svg )
You can’t perform that action at this time.
0 commit comments