diff --git a/.github/workflows/sims.yml b/.github/workflows/sims.yml index ba7c4b7ee..7d0ce7f06 100644 --- a/.github/workflows/sims.yml +++ b/.github/workflows/sims.yml @@ -2,10 +2,10 @@ name: Sims # Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short) # This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed on: - pull_request: - push: - branches: - - master + schedule: + - cron: "* */2 * * *" + release: + types: [published] jobs: cleanup-runs: @@ -43,33 +43,6 @@ jobs: path: ~/go/bin key: ${{ runner.os }}-go-runsim-binary - test-sim-nondeterminism: - runs-on: ubuntu-latest - needs: [build, install-runsim] - timeout-minutes: 60 - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 - with: - go-version: 1.17 - - name: Display go version - run: go version - - uses: technote-space/get-diff-action@v6.0.1 - with: - PATTERNS: | - **/**.go - go.mod - go.sum - - uses: actions/cache@v2.1.7 - with: - path: ~/go/bin - key: ${{ runner.os }}-go-runsim-binary - if: env.GIT_DIFF - - name: test-sim-nondeterminism - run: | - make test-sim-nondeterminism - if: env.GIT_DIFF - test-sim-import-export: runs-on: ubuntu-latest needs: [build, install-runsim] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d310fa346..d155d1a16 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -216,3 +216,45 @@ jobs: run: | ./contrib/localnet_liveness.sh 100 5 50 localhost if: env.GIT_DIFF + + install-runsim: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.17 + - name: Display go version + run: go version + - name: Install runsim + run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/runsim@v1.0.0 + - uses: actions/cache@v2.1.7 + with: + path: ~/go/bin + key: ${{ runner.os }}-go-runsim-binary + + test-sim-nondeterminism: + runs-on: ubuntu-latest + needs: [build, install-runsim] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: 1.17 + - name: Display go version + run: go version + - uses: technote-space/get-diff-action@v6.0.1 + with: + PATTERNS: | + **/**.go + go.mod + go.sum + - uses: actions/cache@v2.1.7 + with: + path: ~/go/bin + key: ${{ runner.os }}-go-runsim-binary + if: env.GIT_DIFF + - name: test-sim-nondeterminism + run: | + make test-sim-nondeterminism + if: env.GIT_DIFF