-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd21462
commit a0ecd79
Showing
3 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,10 +13,10 @@ jobs: | |
- 8761:8761 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.21 | ||
|
||
|
@@ -35,11 +35,6 @@ jobs: | |
- name: typos-action | ||
uses: crate-ci/[email protected] | ||
|
||
- name: Lint | ||
run: | | ||
go vet -stdmethods=false $(go list ./...) | ||
go install mvdan.cc/[email protected] | ||
test -z "$(gofumpt -l -extra .)" | ||
|
||
- name: Unit Test | ||
run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Options for analysis running. | ||
run: | ||
# include `vendor` `third_party` `testdata` `examples` `Godeps` `builtin` | ||
skip-dirs-use-default: true | ||
# output configuration options | ||
output: | ||
# Format: colored-line-number|line-number|json|tab|checkstyle|code-climate|junit-xml|github-actions | ||
formats: colored-line-number | ||
# All available settings of specific linters. | ||
# Refer to https://golangci-lint.run/usage/linters | ||
linters-settings: | ||
gofumpt: | ||
# Choose whether to use the extra rules. | ||
# Default: false | ||
extra-rules: true | ||
govet: | ||
# Disable analyzers by name. | ||
# Run `go tool vet help` to see all analyzers. | ||
disable: | ||
- stdmethods | ||
linters: | ||
enable: | ||
- gofumpt | ||
- goimports | ||
- gofmt | ||
disable: | ||
- errcheck | ||
- typecheck | ||
- staticcheck | ||
issues: | ||
exclude-use-default: true | ||
exclude-files: | ||
- ".*\\.mock\\.go$" | ||
exclude-dirs: |