Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go 1.22 #97

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading