diff --git a/.github/workflows/e2emodule.yml b/.github/workflows/e2emodule.yml new file mode 100644 index 00000000000..dc4f8dbc046 --- /dev/null +++ b/.github/workflows/e2emodule.yml @@ -0,0 +1,33 @@ +name: E2E Unit tests/Lint. +# This workflow runs when a PR is opened that targets code that is part of the e2e module. +on: + pull_request: + paths: + - '.github/workflows/e2emodule.yml' + - 'e2e/**' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + - uses: actions/checkout@v4 + - uses: golangci/golangci-lint-action@v4.0.0 + with: + version: v1.54.2 + args: --timeout 5m + working-directory: e2e/ + + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: '1.21' + - name: Go Test + run: | + cd e2e + go test -v -mod=readonly ./... -tags='test_e2e' \ No newline at end of file diff --git a/e2e/tests/upgrades/genesis_test.go b/e2e/tests/upgrades/genesis_test.go index 4b387bb128b..3a39f041aae 100644 --- a/e2e/tests/upgrades/genesis_test.go +++ b/e2e/tests/upgrades/genesis_test.go @@ -125,7 +125,7 @@ func (s *GenesisTestSuite) TestIBCGenesis() { s.Require().NoError(test.WaitForBlocks(ctx, 10, chainA, chainB), "failed to wait for blocks") t.Run("Halt chain and export genesis", func(t *testing.T) { - s.HaltChainAndExportGenesis(ctx, chainA.(*cosmos.CosmosChain), relayer, int64(haltHeight)) + s.HaltChainAndExportGenesis(ctx, chainA.(*cosmos.CosmosChain), relayer, haltHeight) }) t.Run("ics20: native IBC token transfer from chainA to chainB, sender is source of tokens", func(t *testing.T) { @@ -242,5 +242,5 @@ func (s *GenesisTestSuite) HaltChainAndExportGenesis(ctx context.Context, chain height, err := chain.Height(ctx) s.Require().NoError(err, "error fetching height after halt") - s.Require().Greater(int64(height), haltHeight, "height did not increment after halt") + s.Require().Greater(height, haltHeight, "height did not increment after halt") }