Skip to content

Commit

Permalink
Adding sim label for PRs to run long-running non-determinism sim (#774
Browse files Browse the repository at this point in the history
) (#778)
  • Loading branch information
shahankhatch authored Mar 19, 2021
1 parent 0c63d8b commit ca15d27
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/sim-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: SimLabeled
on:
pull_request:
types: [ labeled ]

jobs:
cleanup-runs:
runs-on: ubuntu-latest
steps:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"

newbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
go-version: 1.16
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v1
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary

test-sim-nondeterminism:
if: ${{ github.event.label.name == 'sim' }}
runs-on: ubuntu-latest
needs: newbuild
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
go-version: 1.16
- uses: technote-space/get-diff-action@v4
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: actions/cache@v1
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: "env.GIT_DIFF != ''"
- name: test nondeterminism
run: |
make test-sim-nondeterminism
if: "env.GIT_DIFF != ''"

0 comments on commit ca15d27

Please sign in to comment.