Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Commit

Permalink
Bump golang and golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatthm committed Aug 24, 2021
1 parent ca5dc51 commit c4747cf
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.5.1
uses: golangci/golangci-lint-action@v2.5.2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.39.0
version: v1.42.0

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:

env:
GO111MODULE: "on"
GO_LATEST_VERSION: "1.16.x"
GO_LATEST_VERSION: "1.17.x"

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
go-version: [ 1.14.x, 1.15.x, 1.16.x ]
go-version: [ 1.16.x, 1.17.x ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
Expand Down
26 changes: 14 additions & 12 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,30 @@ linters-settings:
linters:
enable-all: true
disable:
- lll
- maligned
- gochecknoglobals
- gomnd
- wrapcheck
- paralleltest
- forbidigo
- exhaustivestruct
- interfacer
- forbidigo
- forcetypeassert
- gci
- gochecknoglobals
- golint
- gomnd
- ifshort
- interfacer
- lll
- maligned
- paralleltest
- scopelint
- testpackage
- gci
- wrapcheck

issues:
exclude-use-default: false
exclude-rules:
- linters:
- gomnd
- dupl
- funlen
- goconst
- goerr113
- gomnd
- noctx
- funlen
- dupl
path: "_test.go"
20 changes: 15 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
module github.com/nhatthm/clockdog

go 1.16
go 1.17

require (
github.com/cucumber/godog v0.11.0
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/hashicorp/go-memdb v1.3.2 // indirect
github.com/cucumber/godog v0.12.0
github.com/nhatthm/go-clock v0.6.0
github.com/nhatthm/timeparser v0.2.0
github.com/stretchr/testify v1.7.0
)

require (
github.com/cucumber/gherkin-go/v19 v19.0.3 // indirect
github.com/cucumber/messages-go/v16 v16.0.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-memdb v1.3.2 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)
Loading

0 comments on commit c4747cf

Please # to comment.