This repository was archived by the owner on Dec 30, 2024. It is now read-only.
File tree 5 files changed +98
-13
lines changed
5 files changed +98
-13
lines changed Original file line number Diff line number Diff line change
1
+ name : golangci-lint
2
+ on :
3
+ push :
4
+ tags :
5
+ - v*
6
+ branches :
7
+ - master
8
+ - main
9
+ pull_request :
10
+ permissions :
11
+ contents : read
12
+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
13
+ # pull-requests: read
14
+ jobs :
15
+ golangci :
16
+ name : lint
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/setup-go@v3
20
+ with :
21
+ go-version : 1.18
22
+ - uses : actions/checkout@v3
23
+ - name : golangci-lint
24
+ uses : golangci/golangci-lint-action@v3
25
+ with :
26
+ # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
27
+ version : v1.46.2
28
+
29
+ # Optional: working directory, useful for monorepos
30
+ # working-directory: somedir
31
+
32
+ # Optional: golangci-lint command line arguments.
33
+ # args: --issues-exit-code=0
34
+
35
+ # Optional: show only new issues if it's a pull request. The default value is `false`.
36
+ # only-new-issues: true
37
+
38
+ # Optional: if set to true then the all caching functionality will be complete disabled,
39
+ # takes precedence over all other caching options.
40
+ # skip-cache: true
41
+
42
+ # Optional: if set to true then the action don't cache or restore ~/go/pkg.
43
+ # skip-pkg-cache: true
44
+
45
+ # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
46
+ # skip-build-cache: true
Original file line number Diff line number Diff line change
1
+ name : test
2
+ on :
3
+ push :
4
+ tags :
5
+ - v*
6
+ branches :
7
+ - master
8
+ - main
9
+ pull_request :
10
+ jobs :
11
+ test :
12
+ name : test
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/setup-go@v3
16
+ with :
17
+ go-version : 1.18
18
+ - uses : actions/checkout@v3
19
+ - run : make test
20
+
21
+ codecov :
22
+ name : codecov
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/setup-go@v3
26
+ with :
27
+ go-version : 1.18
28
+ - uses : actions/checkout@v3
29
+ - run : make coverage
30
+ - run : bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change
1
+ linters :
2
+ enable-all : false
3
+ enable :
4
+ - unparam
5
+ - whitespace
6
+ - unconvert
7
+ - bodyclose
8
+ - gofmt
9
+ - nakedret
10
+ - prealloc
11
+ - rowserrcheck
12
+ - unconvert
13
+ - gocritic
14
+ - godox
15
+ - errcheck
16
+ - ineffassign
17
+
18
+ linters-settings :
19
+ govet :
20
+ check-shadowing : true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# zerolog-sentry
2
- [ ![ Build Status] ( https://travis-ci.org/archdx/zerolog-sentry.svg?branch=master )] ( https://travis-ci.org/archdx/zerolog-sentry )
2
+ [ ![ Build Status] ( https://github.com/archdx/zerolog-sentry/workflows/test/badge.svg )] ( https://github.com/archdx/zerolog-sentry/actions )
3
+ [ ![ codecov] ( https://codecov.io/gh/archdx/zerolog-sentry/branch/master/graph/badge.svg )] ( https://codecov.io/gh/archdx/zerolog-sentry )
3
4
4
5
### Example
5
6
``` go
@@ -27,4 +28,3 @@ func main() {
27
28
}
28
29
29
30
```
30
-
You can’t perform that action at this time.
0 commit comments