Skip to content

Commit

Permalink
fix sims.yml after testing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adu-crypto committed Jul 15, 2022
1 parent a7b564d commit 7639195
Showing 1 changed file with 43 additions and 32 deletions.
75 changes: 43 additions & 32 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim') ||
github.event_name == 'push' || github.event_name == 'pull_request'
steps:
# if we could have secrets.ORG_READ_BOT_PAT, we can check against team rather than organization.
- name: Check if organization member
uses: JamesSingleton/is-organization-member@main
id: checkMember
Expand All @@ -30,7 +31,7 @@ jobs:
organization: crypto-org-chain
token: ${{ secrets.GITHUB_TOKEN }}
- name: Comment PR for authentication failure
uses: allthatjazzleo/actions-pull-request-add-comment@master
uses: crypto-org-chain/actions-pull-request-add-comment@master
if: steps.checkMember.outputs.result == 'false'
with:
message: |
Expand All @@ -46,7 +47,7 @@ jobs:
with:
message: |
Simulation tests started and triggered by `/runsim`.
Can further check progress [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
Can check further progress [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/[email protected]
Expand All @@ -66,7 +67,7 @@ jobs:
- name: Display go version
run: go version
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
run: export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected]
- uses: actions/[email protected]
with:
path: ~/go/bin
Expand All @@ -82,7 +83,9 @@ jobs:
go-version: 1.18
- name: Display go version
run: go version
- uses: adu-crypto/get-diff-action@master
# the original repo technote-space does not include auto_merge_enabled into target events
# we can move back after this pr merged: https://github.com/technote-space/get-diff-action/pull/193
- uses: adu-crypto/get-diff-action@gh-actions
with:
PATTERNS: |
**/**.go
Expand All @@ -93,13 +96,15 @@ jobs:
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
- name: test-sim-nondeterminism
run: |
make test-sim-nondeterminism
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
test-sim-import-export:
runs-on: ubuntu-latest
Expand All @@ -111,26 +116,28 @@ jobs:
go-version: 1.18
- name: Display go version
run: go version
- uses: adu-crypto/get-diff-action@master
# the original repo technote-space does not include auto_merge_enabled into target events
# we can move back after this pr merged: https://github.com/technote-space/get-diff-action/pull/193
- uses: adu-crypto/get-diff-action@gh-actions
with:
SUFFIX_FILTER: |
PATTERNS: |
**/**.go
go.mod
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
if: github.event_name == 'push' || github.event_name == 'pull_request'
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
- name: test-sim-import-export
run: |
make test-sim-import-export
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
test-sim-after-import:
runs-on: ubuntu-latest
Expand All @@ -142,26 +149,28 @@ jobs:
go-version: 1.18
- name: Display go version
run: go version
- uses: adu-crypto/get-diff-action@master
# the original repo technote-space does not include auto_merge_enabled into target events
# we can move back after this pr merged: https://github.com/technote-space/get-diff-action/pull/193
- uses: adu-crypto/get-diff-action@gh-actions
with:
SUFFIX_FILTER: |
PATTERNS: |
**/**.go
go.mod
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
if: github.event_name == 'push' || github.event_name == 'pull_request'
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
- name: test-sim-after-import
run: |
make test-sim-after-import
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
test-sim-multi-seed-short:
runs-on: ubuntu-latest
Expand All @@ -173,23 +182,25 @@ jobs:
go-version: 1.18
- name: Display go version
run: go version
- uses: adu-crypto/get-diff-action@master
# the original repo technote-space does not include auto_merge_enabled into target events
# we can move back after this pr merged: https://github.com/technote-space/get-diff-action/pull/193
- uses: adu-crypto/get-diff-action@gh-actions
with:
SUFFIX_FILTER: |
PATTERNS: |
**/**.go
go.mod
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
if: github.event_name == 'push' || github.event_name == 'pull_request'
- uses: actions/[email protected]
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
- name: test-sim-multi-seed-short
run: |
make test-sim-multi-seed-short
if: (env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')
if: >-
(env.GIT_DIFF && (github.event_name == 'push' || github.event_name == 'pull_request')) ||
(github.event_name == 'issue_comment' && github.event.comment.body == '/runsim')

0 comments on commit 7639195

Please sign in to comment.