Skip to content

Commit

Permalink
add simulation test
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-zq committed Jul 25, 2024
1 parent 55f906f commit 194ba3c
Show file tree
Hide file tree
Showing 13 changed files with 688 additions and 691 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/sims.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Simulation Test
on: [pull_request]

jobs:
test-sim-nondeterminism-fast:
name: Test AppStateDeterminism
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: '^1.19' # The Go version to download (if necessary) and use.
- run: make test-sim-nondeterminism-fast
# test-sim-import-export:
# name: Test AppImportExport
# runs-on: ubuntu-latest
# steps:
# - name: Checkout source code
# uses: actions/checkout@v3
# - name: Setup go
# uses: actions/setup-go@v3
# with:
# go-version: '^1.19' # The Go version to download (if necessary) and use.
# - run: make test-sim-import-export
# test-sim-after-import:
# name: Test AppSimulationAfterImport
# runs-on: ubuntu-latest
# steps:
# - name: Checkout source code
# uses: actions/checkout@v3
# - name: Setup go
# uses: actions/setup-go@v3
# with:
# go-version: '^1.19' # The Go version to download (if necessary) and use.
# - run: make test-sim-after-import
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ include scripts/build/godoc.mk
include scripts/build/contract.mk
include scripts/build/protobuf.mk
include scripts/build/testing.mk
include scripts/build/simulations.mk
include scripts/build/linting.mk
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
cosmossdk.io/api v0.3.1
cosmossdk.io/core v0.5.1
github.com/cometbft/cometbft v0.37.4
github.com/cometbft/cometbft-db v0.7.0
github.com/cosmos/cosmos-sdk v0.47.9
github.com/cosmos/gogoproto v1.4.10
github.com/stretchr/testify v1.8.4
Expand Down Expand Up @@ -57,7 +58,6 @@ require (
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
github.com/cometbft/cometbft-db v0.7.0 // indirect
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.4 // indirect
Expand Down
Loading

0 comments on commit 194ba3c

Please sign in to comment.