Skip to content

Commit

Permalink
Update support Go version
Browse files Browse the repository at this point in the history
  • Loading branch information
osamingo committed Oct 11, 2022
1 parent f0d67f2 commit c83c251
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/osamingo/gosh

go 1.15
go 1.18
3 changes: 1 addition & 2 deletions gosh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c83c251

Please sign in to comment.