From c83c251904c5c19382de582de423b0009015db03 Mon Sep 17 00:00:00 2001 From: Osamu TONOMORI Date: Tue, 11 Oct 2022 16:23:17 +0900 Subject: [PATCH] Update support Go version --- .github/workflows/actions.yml | 13 +++++-------- go.mod | 2 +- gosh_test.go | 3 +-- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index cac467e..02678f6 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -11,24 +11,21 @@ on: jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - - uses: actions/setup-go@v3 - with: - go-version: 1.17 - uses: actions/checkout@v3 - uses: golangci/golangci-lint-action@v3 with: - version: v1.45.2 + version: v1.49.0 test: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 strategy: matrix: - go: [ '1.16.x', '1.17.x', '1.18.x' ] + go: [ '1.18.x', '1.19.x' ] steps: - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/setup-go@v2 with: go-version: ${{ matrix.go }} - run: go test -race -covermode=atomic -coverprofile=coverage.txt ./... diff --git a/go.mod b/go.mod index 294c211..29447b0 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/osamingo/gosh -go 1.15 +go 1.18 diff --git a/gosh_test.go b/gosh_test.go index a2f5302..7826287 100644 --- a/gosh_test.go +++ b/gosh_test.go @@ -15,9 +15,8 @@ import ( type wrongJSONEncoder struct{} -//nolint: goerr113 func (e *wrongJSONEncoder) Encode(v interface{}) error { - return fmt.Errorf("wrong json encoder") + return fmt.Errorf("wrong json encoder") //nolint: goerr113 } func newJSONEncoder(w io.Writer) gosh.JSONEncoder {