feat: Metoken main functionality #8413
Workflow file for this run
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
name: Simulations | |
on: | |
merge_group: | |
types: [checks_requested] | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
concurrency: | |
group: ci-${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
install-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Install runsim | |
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected] | |
- uses: actions/cache@v3 | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-go-runsim-binary | |
test-app-non-determinism: | |
# skip the non determinim simulation test when `skip-e2e-test` label is present on pull request | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-e2e-test') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- uses: actions/setup-go@v4 | |
if: env.GIT_DIFF | |
with: | |
go-version: "1.20" | |
cache: true | |
- name: Test application non-determinism | |
if: env.GIT_DIFF | |
run: | | |
make test-app-non-determinism | |
test-app-import-export: | |
# skip the genesis import and export simulation test when `skip-e2e-test` label is present on pull request | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-e2e-test') }} | |
runs-on: ubuntu-latest | |
needs: install-dependencies | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- uses: actions/setup-go@v4 | |
if: env.GIT_DIFF | |
with: | |
go-version: "1.20" | |
cache: true | |
- uses: actions/cache@v3 | |
if: env.GIT_DIFF | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-go-runsim-binary | |
- name: test-app-import-export | |
if: env.GIT_DIFF | |
run: | | |
make test-app-import-export | |
test-app-after-import: | |
# skip the genesis import simulation test when `skip-e2e-test` label is present on pull request | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-e2e-test') }} | |
runs-on: ubuntu-latest | |
needs: install-dependencies | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- uses: actions/setup-go@v4 | |
if: env.GIT_DIFF | |
with: | |
go-version: "1.20" | |
cache: true | |
- uses: actions/cache@v3 | |
if: env.GIT_DIFF | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-go-runsim-binary | |
- name: test-app-after-import | |
if: env.GIT_DIFF | |
run: | | |
make test-app-after-import | |
test-app-multi-seed-short: | |
# skip this simulation test when `skip-e2e-test` label is present on pull request | |
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip-e2e-test') }} | |
runs-on: ubuntu-latest | |
needs: install-dependencies | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
- uses: actions/setup-go@v4 | |
if: env.GIT_DIFF | |
with: | |
go-version: "1.20" | |
cache: true | |
- uses: actions/cache@v3 | |
if: env.GIT_DIFF | |
with: | |
path: ~/go/bin | |
key: ${{ runner.os }}-go-runsim-binary | |
- name: test-app-multi-seed-short | |
if: env.GIT_DIFF | |
run: | | |
make test-app-multi-seed-short |