Skip to content

Commit

Permalink
Update infrastructure (#13)
Browse files Browse the repository at this point in the history
* Update GitHub Actions

* Update golangci-lint to v1.55.1
  • Loading branch information
twpayne authored Oct 30, 2023
1 parent d84afa9 commit 8cb17ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:
- stable
- oldstable
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
cache: true
go-version: ${{ matrix.go-version }}
- name: Build
run: go build ./...
- name: Test
run: go test -covermode=atomic -coverprofile=profile.cov -race ./...
- uses: shogo82148/actions-goveralls@v1
- uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2
with:
path-to-profile: profile.cov
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
cache: true
go-version: stable
- uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376
- uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc
with:
version: v1.51.1
version: v1.55.1
18 changes: 14 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ linters:
- containedctx
- contextcheck
- decorder
- depguard
- dogsled
- dupl
- dupword
Expand All @@ -18,11 +17,11 @@ linters:
- errorlint
- execinquery
- exhaustive
- exhaustruct
- exportloopref
- forbidigo
- forcetypeassert
- gci
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoinits
- gocognit
Expand All @@ -41,16 +40,19 @@ linters:
- goprintffuncname
- gosec
- gosimple
- gosmopolitan
- govet
- grouper
- importas
- inamedparam
- ineffassign
- interfacebloat
- ireturn
- lll
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- musttag
- nakedret
Expand All @@ -61,37 +63,45 @@ linters:
- nolintlint
- nonamedreturns
- nosprintfhostport
- perfsprint
- prealloc
- predeclared
- promlinter
- protogetter
- reassign
- revive
- rowserrcheck
- sloglint
- sqlclosecheck
- staticcheck
- stylecheck
- tagalign
- tagliatelle
- tenv
- testifylint
- testpackage
- thelper
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
- whitespace
- zerologlint
disable:
- cyclop
- depguard
- exhaustivestruct
- exhaustruct
- funlen
- gochecknoglobals
- gomnd
- nlreturn
- paralleltest
- rowserrcheck # https://github.com/golangci/golangci-lint/issues/2649
- testableexamples
- tparallel
- varnamelen
- wastedassign # https://github.com/golangci/golangci-lint/issues/2649
- wrapcheck
- wsl

Expand Down

0 comments on commit 8cb17ef

Please sign in to comment.