-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding
sim
label for PRs to run long-running non-determinism sim (#774
) (#778)
- Loading branch information
1 parent
0c63d8b
commit ca15d27
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
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
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 != ''" |