add build phase prior to sims & test (#6003)
* add build phase prioir to sims * fix run * forgot to checkout code * Update .github/workflows/sims.yml Co-Authored-By: Alessio Treglia <alessio@tendermint.com> * Apply suggestions from code review Co-Authored-By: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
3cc4063a2e
commit
be6aefd230
|
@ -12,6 +12,14 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.head_commit.message, 'skip-sims')"
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
- run: |
|
||||
make build
|
||||
install-runsim:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- name: install runsim
|
||||
|
@ -24,7 +32,7 @@ jobs:
|
|||
|
||||
test-sim-nondeterminism:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
needs: [build, install-runsim]
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -38,7 +46,7 @@ jobs:
|
|||
|
||||
test-sim-import-export:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
needs: [build, install-runsim]
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -52,7 +60,7 @@ jobs:
|
|||
|
||||
test-sim-after-import:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
needs: [build, install-runsim]
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -66,7 +74,7 @@ jobs:
|
|||
|
||||
test-sim-multi-seed-short:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
needs: [build, install-runsim]
|
||||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
|
|
|
@ -18,6 +18,9 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/setup-go@v2-beta
|
||||
- uses: actions/checkout@v2
|
||||
- name: build
|
||||
run: |
|
||||
make build
|
||||
- name: test & coverage report creation
|
||||
run: |
|
||||
go test ./... -mod=readonly -timeout 12m -race -coverprofile=coverage.txt -covermode=atomic -tags='ledger test_ledger_mock'
|
||||
|
|
Loading…
Reference in New Issue