Skip to content

Commit

Permalink
Merge pull request #22 from adlio/golangci-lint-update-1.52.2
Browse files Browse the repository at this point in the history
Update golangci-lint
  • Loading branch information
adlio committed Apr 8, 2023
2 parents f2a1650 + 5c11522 commit c3168f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
name: Install golangci-lint
# Note: It's likely the below URL's "master" will change to "main" someday.
# The version of golangci-lint being used can be changed with the vN.N.N at the end of this URL.
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/bin v1.42.0
command: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ~/bin v1.52.2

- run:
name: Run Go Linters
command: ~/bin/golangci-lint run . --timeout 2m

go-build-and-test:
machine:
image: ubuntu-2204:2022.04.2
image: ubuntu-2204:2023.02.1
steps:
- checkout
- run:
Expand Down
3 changes: 3 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import (
// containers to which we then connect and store the connection in a package
// global variable
func TestMain(m *testing.M) {

log.Printf("Running tests on GOARCH=%s", runtime.GOARCH)

pool, err := dockertest.NewPool("")
if err != nil {
log.Fatalf("Can't run schema tests. Docker is not running: %s", err)
Expand Down
2 changes: 1 addition & 1 deletion schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ var TestDBs map[string]*TestDB = map[string]*TestDB{
Driver: MSSQLDriverName,
DockerRepo: "mcr.microsoft.com/mssql/server",
DockerTag: "2019-latest",
SkippedArchs: []string{"arm64"},
SkippedArchs: []string{"amd64"},
},
}

0 comments on commit c3168f6

Please sign in to comment.