Skip to content

Commit

Permalink
e2e: add workflow for e2e module. (#6051)
Browse files Browse the repository at this point in the history
* e2e: add workflow for e2e module.

* e2e: exclude running actual e2e tests.

* chore: Rename job name.
  • Loading branch information
DimitrisJim authored Mar 25, 2024
1 parent d18a661 commit 1323a73
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/e2emodule.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
4 changes: 2 additions & 2 deletions e2e/tests/upgrades/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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")
}

0 comments on commit 1323a73

Please sign in to comment.