Skip to content

Commit

Permalink
fixup! fix(deps): update all non-major dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfonseca committed Dec 31, 2024
1 parent 2dcfabd commit b00e26a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,8 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.3
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
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.54.2

# Optional: working directory, useful for monorepos
# working-directory: somedir

# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
version: latest
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ linters:
# - depguard # Go linter that checks if package imports are in a list of acceptable packages
- bodyclose # checks whether HTTP response body is closed successfully
- dupl # Tool for code clone detection
- exportloopref # checks for pointers to enclosing loop variables
- copyloopvar # checks for pointers to enclosing loop variables
- goconst # Finds repeated strings that could be replaced by a constant
- gocyclo # Computes and checks the cyclomatic complexity of functions
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
Expand Down
7 changes: 3 additions & 4 deletions official/v7/search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ func Test_Search(t *testing.T) {
}

for _, test := range tests {
test := test
t.Run(test.name, func(t *testing.T) {
t.Parallel()
assert.NotPanics(t, func() {
Expand Down Expand Up @@ -226,7 +225,7 @@ func getMockFilter() Filter {
Must: ExampleFilterMust{
Names: []string{"John", "Mary"},
Ages: []uint64{16, 17, 18, 25, 26},
HasCovid: ref.Bool(true),
HasCovid: ref.Of(true),
CovidInfo: NewNested(
ExampleCovidInfo{
Symptoms: []string{"cough"},
Expand Down Expand Up @@ -265,10 +264,10 @@ func getMockFilter() Filter {
Exists: ExampleFilterExists{
HasCovidInfo: NewNested(
ExampleCovidInfo{
HasCovidInfo: ref.Bool(true),
HasCovidInfo: ref.Of(true),
},
),
HasAge: ref.Bool(true),
HasAge: ref.Of(true),
},
}
}
Expand Down

0 comments on commit b00e26a

Please sign in to comment.