chore: non required sims to run every 2 hours (#11359)
* put non required sims to run every 2 hours * add on release publish
This commit is contained in:
parent
529f88e6e1
commit
7a4098797d
|
@ -2,10 +2,10 @@ name: Sims
|
||||||
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short)
|
# 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
|
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
|
||||||
on:
|
on:
|
||||||
pull_request:
|
schedule:
|
||||||
push:
|
- cron: "* */2 * * *"
|
||||||
branches:
|
release:
|
||||||
- master
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cleanup-runs:
|
cleanup-runs:
|
||||||
|
@ -43,33 +43,6 @@ jobs:
|
||||||
path: ~/go/bin
|
path: ~/go/bin
|
||||||
key: ${{ runner.os }}-go-runsim-binary
|
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:
|
test-sim-import-export:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build, install-runsim]
|
needs: [build, install-runsim]
|
||||||
|
|
|
@ -216,3 +216,45 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
./contrib/localnet_liveness.sh 100 5 50 localhost
|
./contrib/localnet_liveness.sh 100 5 50 localhost
|
||||||
if: env.GIT_DIFF
|
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
|
||||||
|
|
Loading…
Reference in New Issue