Skip to content

Commit

Permalink
separate in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Jul 3, 2023
1 parent 3ebe9a2 commit 946cbb9
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/interchaintest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@ jobs:
- name: interchaintest
run: make interchaintest-multiple

misbehaviour:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v1
with:
go-version: 1.20
id: go

- name: checkout relayer
uses: actions/checkout@v2

- uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: interchaintest
run: make interchaintest-misbehaviour

scenarios:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ interchaintest-legacy:
interchaintest-multiple:
cd interchaintest && go test -race -v -run TestRelayerMultiplePathsSingleProcess .

interchaintest-misbehaviour:
cd interchaintest && go test -timeout 30m -race -v -run TestRelayerMisbehaviourDetection .

interchaintest-scenario: ## Scenario tests are suitable for simple networks of 1 validator and no full nodes. They test specific functionality.
cd interchaintest && go test -timeout 30m -race -v -run TestScenario ./...

Expand Down
4 changes: 3 additions & 1 deletion interchaintest/misbehaviour_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ import (
"go.uber.org/zap/zaptest"
)

func TestScenarioMisbehaviourDetection(t *testing.T) {
func TestRelayerMisbehaviourDetection(t *testing.T) {
if testing.Short() {
t.Skip()
}

t.Parallel()

numVals := 1
numFullNodes := 0
cf := interchaintest.NewBuiltinChainFactory(zaptest.NewLogger(t), []*interchaintest.ChainSpec{
Expand Down

0 comments on commit 946cbb9

Please sign in to comment.