Skip to content

Commit

Permalink
ci: add test import export job
Browse files Browse the repository at this point in the history
  • Loading branch information
ivivanov authored and Lockwarr committed Feb 17, 2023
1 parent 9b9c4c4 commit 5ccc629
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test-fuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@ on:
- cron: '0 3 * * *'

jobs:
test-fuzz:
name: Run fuzz tests
nondeterminism:
name: Test App State Determinism
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18

- uses: actions/checkout@v3

- run: |
make test-sim-nondeterminism
import-export:
name: Test App Import Export
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18

- uses: actions/checkout@v3

- run: |
make test-fuzz
make test-sim-import-export
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@ lint:
###############################################################################
.PHONY: test-fuzz test-unit-cosmos test-unit test-unit-coverage test-unit-coverage-report

test-fuzz:
test-sim-nondeterminism:
go test ./app $(BUILD_FLAGS) -mod=readonly -run TestAppStateDeterminism -Enabled=true \
-NumBlocks=$(FUZZ_NUM_BLOCKS) -BlockSize=$(FUZZ_BLOCK_SIZE) -Commit=true -Period=0 -v \
-NumSeeds=$(FUZZ_NUM_SEEDS) -NumTimesToRunPerSeed=$(FUZZ_NUM_RUNS_PER_SEED) -timeout 24h

test-sim-import-export:
go get github.com/cosmos/tools/cmd/runsim
go install github.com/cosmos/tools/cmd/runsim
go install github.com/cosmos/tools/cmd/runsim@latest
@echo "Running application import/export simulation. This may take several minutes..."
runsim -Jobs=4 -SimAppPkg=./app -ExitOnFail 10 5 TestAppImportExport
go mod tidy

test-unit-cosmos:
./scripts/test/run-test-unit-cosmos.sh >&2
Expand Down

0 comments on commit 5ccc629

Please sign in to comment.