mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-08 18:10:26 +08:00
fix: ci
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -45,6 +45,11 @@ jobs:
|
||||
- name: Run tests
|
||||
run: go test -v -count=1 ./...
|
||||
|
||||
- name: Run golangci-lint
|
||||
uses: golangci/golangci-lint-action@v9
|
||||
with:
|
||||
version: v2.11
|
||||
|
||||
go-generate:
|
||||
name: Run all Generates & PR
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
41
.golangci.yml
Normal file
41
.golangci.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
version: "2"
|
||||
|
||||
linters:
|
||||
default: none
|
||||
enable:
|
||||
- errcheck
|
||||
- staticcheck
|
||||
- govet
|
||||
- ineffassign
|
||||
- unused
|
||||
- misspell
|
||||
- unconvert
|
||||
- revive
|
||||
settings:
|
||||
revive:
|
||||
rules:
|
||||
- name: exported
|
||||
disabled: true
|
||||
exclusions:
|
||||
rules:
|
||||
- path: ^cmd/
|
||||
linters:
|
||||
- errcheck
|
||||
- staticcheck
|
||||
- govet
|
||||
- ineffassign
|
||||
- unused
|
||||
- misspell
|
||||
- unconvert
|
||||
- revive
|
||||
- linters:
|
||||
- errcheck
|
||||
source: "^\\s*defer "
|
||||
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
max-same-issues: 0
|
||||
@@ -245,8 +245,6 @@ func main() {
|
||||
if zev1[i] != expect {
|
||||
fail = true
|
||||
fmt.Printf("[%05d] expect %f = %f + %f, got %f.\n", i, expect, floatbuf[i], floatbuf[N+i], zev1[i])
|
||||
} else {
|
||||
// fmt.Printf("[%05d] valid %f = %f + %f, got %f.\n", i, expect, floatbuf[i], floatbuf[N+i], zev1[i])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user