-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from bandprotocol/add-simulation-oracle
Add simulation test for Oracle module
- Loading branch information
Showing
29 changed files
with
2,156 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: Simulation | ||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
check-latest: true | ||
- name: Install Wabt (wat2wasm) | ||
run: | | ||
wget https://github.com/WebAssembly/wabt/releases/download/1.0.17/wabt-1.0.17-ubuntu.tar.gz | ||
tar -zxf wabt-1.0.17-ubuntu.tar.gz | ||
sudo cp wabt-1.0.17/bin/wat2wasm ~/go/bin | ||
- name: Install runsim | ||
run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-binary | ||
|
||
test-sim-import-export: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
check-latest: true | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-binary | ||
- name: test-sim-import-export | ||
run: | | ||
make test-sim-import-export | ||
test-sim-after-import: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
check-latest: true | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-binary | ||
- name: test-sim-after-import | ||
run: | | ||
make test-sim-after-import | ||
test-sim-multi-seed-short: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
check-latest: true | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-binary | ||
- name: test-sim-multi-seed-short | ||
run: | | ||
make test-sim-multi-seed-short | ||
test-sim-deterministic: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
timeout-minutes: 45 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19" | ||
check-latest: true | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/go/bin | ||
key: ${{ runner.os }}-go-binary | ||
- name: test-sim-deterministic | ||
run: | | ||
make test-sim-deterministic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.