Skip to content

Commit

Permalink
chore: upgrade to Go v1.20 (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreynering authored May 1, 2023
1 parent 314105a commit 0114b1d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.20.x

- uses: actions/checkout@v3

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.1
version: v1.52.2
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19.x
go-version: 1.20.x

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
steps:
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check out code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine
FROM golang:1.20-alpine

RUN apk update
RUN apk add alpine-sdk
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ require (
golang.org/x/text v0.7.0 // indirect
)

go 1.18
go 1.19
5 changes: 2 additions & 3 deletions testfixtures_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"database/sql"
"embed"
"fmt"
"io/ioutil"
"os"
"testing"
"time"
Expand Down Expand Up @@ -53,7 +52,7 @@ func testLoader(t *testing.T, dialect, connStr, schemaFilePath string, additiona
return
}

schema, err := ioutil.ReadFile(schemaFilePath)
schema, err := os.ReadFile(schemaFilePath)
if err != nil {
t.Errorf("cannot read schema file: %v", err)
return
Expand Down Expand Up @@ -447,7 +446,7 @@ func testLoader(t *testing.T, dialect, connStr, schemaFilePath string, additiona
})

t.Run("GenerateAndLoad", func(t *testing.T) {
dir, err := ioutil.TempDir(os.TempDir(), "testfixtures_test")
dir, err := os.MkdirTemp(os.TempDir(), "testfixtures_test")
if err != nil {
t.Errorf("cannot create temp dir: %v", err)
return
Expand Down

0 comments on commit 0114b1d

Please sign in to comment.