Skip to content

Commit

Permalink
Merge pull request #97 from nspcc-dev/75-go-122-upgrade
Browse files Browse the repository at this point in the history
Go 1.22
  • Loading branch information
roman-khimov authored Aug 30, 2024
2 parents b97db02 + dad76ef commit bebbf1c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
go-version: '1.23'
cache: true

- name: Update Go modules
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,18 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-12, macos-14]
go: [ '1.21', '1.22' ]
go: [ '1.22', '1.23' ]
exclude:
# Only latest Go version for Windows and MacOS.
- os: windows-2022
go: '1.21'
- os: windows-2022
go: '1.22'
- os: macos-12
go: '1.21'
- os: macos-12
go: '1.22'
- os: macos-14
go: '1.21'
- os: macos-14
go: '1.22'
# Exclude latest Go version for Ubuntu as Coverage uses it.
- os: ubuntu-22.04
go: '1.22'
go: '1.23'
fail-fast: false
steps:
- name: Setup go
Expand Down Expand Up @@ -81,7 +75,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: true
go-version: 1.22
go-version: 1.23

- name: Test and write coverage profile
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/nspcc-dev/xk6-neofs

go 1.21
go 1.22

require (
github.com/aws/aws-sdk-go-v2 v1.30.3
Expand Down
2 changes: 1 addition & 1 deletion internal/datagen/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func TestGenerator(t *testing.T) {
t.Run("keeps generating slices after consuming entire tail", func(t *testing.T) {
g := NewGenerator(vu, 1000)
initialSlice := g.nextSlice()
for i := 0; i < TailSize; i++ {
for range TailSize {
g.nextSlice()
}
// After we looped around our tail and returned to the beginning we should have a
Expand Down

0 comments on commit bebbf1c

Please sign in to comment.