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 10, 2022
1 parent a1b9d98 commit c17d803
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 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
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/osamingo/indigo

go 1.15
go 1.18

require (
github.com/osamingo/base58 v1.0.0
github.com/sony/sonyflake v1.0.1-0.20200827011719-848d664ceea4
github.com/sony/sonyflake v1.1.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
github.com/osamingo/base58 v1.0.0 h1:NhsHxeyMRaD5Li67LgdZG+4/rlyaNr9rVqYQxNGLOYg=
github.com/osamingo/base58 v1.0.0/go.mod h1:nADsGCd4fm122SrLUaut+PhzCVwyvchAgxxBVDS5Wf8=
github.com/sony/sonyflake v1.0.1-0.20200827011719-848d664ceea4 h1:KPf4aWX4JGEdMICunm9A0YTFbD6OL23G14BR7cL/0wg=
github.com/sony/sonyflake v1.0.1-0.20200827011719-848d664ceea4/go.mod h1:LORtCywH/cq10ZbyfhKrHYgAUGH7mOBa76enV9txy/Y=
github.com/sony/sonyflake v1.1.0 h1:wnrEcL3aOkWmPlhScLEGAXKkLAIslnBteNUq4Bw6MM4=
github.com/sony/sonyflake v1.1.0/go.mod h1:LORtCywH/cq10ZbyfhKrHYgAUGH7mOBa76enV9txy/Y=
2 changes: 1 addition & 1 deletion indigo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func BenchmarkGenerator_NextID(b *testing.B) {
}
}

func ExampleGenerator_NextID() {
func ExampleGenerator_NextID() { //nolint: nosnakecase
const machineID = 65535

g := indigo.New(
Expand Down

0 comments on commit c17d803

Please sign in to comment.