Skip to content

Commit 80f1983

Browse files
authored
chore: upgrade Go toolchain to 1.26.5 and CI actions (#145)
* chore: upgrade Go toolchain to 1.26.5 and CI actions - bump go.mod go directive from 1.24.2 to 1.26.5 - bump actions/checkout to v7 and actions/setup-go to v7 in CI workflow - return *hayabusa.Network by pointer instead of by value from test setup helpers to avoid copying the struct * ci: derive Go version from go.mod in test workflow - Replace hardcoded go-version with go-version-file so the workflow tracks the version pinned in go.mod * ci: point go-version-file at hayabusa-e2e submodule's go.mod
1 parent 1790502 commit 80f1983

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎.github/workflows/run-tests.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,22 @@ jobs:
5252

5353
steps:
5454
- name: Checkout E2E
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v7
5656
with:
5757
repository: vechain/hayabusa-e2e
5858
path: hayabusa-e2e
5959

6060
- name: Checkout Thor
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@v7
6262
with:
6363
repository: vechain/thor
6464
path: thor
6565
ref: ${{ inputs.thor-branch || 'master' }}
6666

6767
- name: Install Go
68-
uses: actions/setup-go@v5
68+
uses: actions/setup-go@v7
6969
with:
70-
go-version: 1.24.x
70+
go-version-file: 'hayabusa-e2e/go.mod'
7171

7272
- name: Test
7373
run: go test -v -parallel 4 -failfast -timeout 3600s ./${{ matrix.packages }}

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/vechain/hayabusa-e2e
22

3-
go 1.24.2
3+
go 1.26.5
44

55
replace github.com/syndtr/goleveldb => github.com/vechain/goleveldb v1.0.1-0.20220809091043-51eb019c8655
66

‎tests/validations/validations_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ func assertValidatorStakingPeriod(t *testing.T, staker *builtin.Staker, validato
793793
assert.Equal(t, expectedPeriod, validator.Period)
794794
}
795795

796-
func setupTestNetwork(t *testing.T, maxBlockProposers uint32) (*hayabusa.Config, *thorclient.Client, hayabusa.Network) {
796+
func setupTestNetwork(t *testing.T, maxBlockProposers uint32) (*hayabusa.Config, *thorclient.Client, *hayabusa.Network) {
797797
return testutil.SetupTestNetworkWithEpochAndBlockInterval(t, maxBlockProposers, 2, 5)
798798
}
799799

‎testutil/config_utils.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/vechain/thor/v2/thorclient/builtin"
1414
)
1515

16-
func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers uint32, epochLength uint32, blockInterval uint64) (*hayabusa.Config, *thorclient.Client, hayabusa.Network) {
16+
func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers uint32, epochLength uint32, blockInterval uint64) (*hayabusa.Config, *thorclient.Client, *hayabusa.Network) {
1717
config := &hayabusa.Config{
1818
Nodes: 6,
1919
MaxBlockProposers: maxBlockProposers,
@@ -34,7 +34,7 @@ func SetupTestNetworkWithEpochAndBlockInterval(t *testing.T, maxBlockProposers u
3434
require.NoError(t, err)
3535
t.Cleanup(network.Stop)
3636
require.NoError(t, network.Start())
37-
return config, network.ThorClient(), *network
37+
return config, network.ThorClient(), network
3838
}
3939

4040
func SetupStakerAndWaitForFork(t *testing.T, client *thorclient.Client, config *hayabusa.Config) *builtin.Staker {

0 commit comments

Comments
 (0)