-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: update workflow fork conditions to allow run on copies #6783
Changes from all commits
5bbb0ab
60643d8
928535b
2215326
dea5ea1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,14 @@ on: | |
|
||
# cancel workflows if a new one is triggered on the same branch. | ||
concurrency: | ||
group: ${{ github.ref }} | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
# dynamically build a matrix of test/test suite pairs to run | ||
build-test-matrix: | ||
if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
# run this job on forks and copies of ibc-go, for example: a public fork or a private copy of ibc-go. | ||
if: ${{ github.repository != 'cosmos/ibc-go' || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fine with either but is this required? I'd assume checking if it is/isn't a fork was the most general option? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
quirky af. Makes sense to me, want to add a small comment there explaining it? Can see this as being something someone would change in future w/o knowing why it was there. |
||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
|
@@ -35,7 +36,8 @@ jobs: | |
|
||
# dynamically build a matrix of test/test suite pairs to run | ||
build-test-matrix-wasm: | ||
if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
# run this job on forks and copies of ibc-go, for example: a public fork or a private copy of ibc-go. | ||
if: ${{ github.repository != 'cosmos/ibc-go' || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
|
@@ -59,7 +61,8 @@ jobs: | |
CHAIN_IMAGE: ibc-go-simd | ||
RELAYER_ID: "hermes" # by default use hermes for fork e2es. | ||
FORK: "true" | ||
if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
# run this job on forks and copies of ibc-go, for example: a public fork or a private copy of ibc-go. | ||
if: ${{ github.repository != 'cosmos/ibc-go' || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
needs: | ||
- build-test-matrix | ||
runs-on: ubuntu-latest | ||
|
@@ -88,7 +91,8 @@ jobs: | |
# CHAIN_IMAGE: ibc-go-wasm-simd | ||
# RELAYER_ID: "hyperspace" # by default use hyperspace relayer for fork wasm tests. | ||
# FORK: "true" | ||
# if: ${{ github.event.pull_request.head.repo.fork || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
# run this job on forks and copies of ibc-go, for example: a public fork or a private copy of ibc-go. | ||
# if: ${{ github.repository != 'cosmos/ibc-go' || github.actor == 'dependabot[bot]' || github.event_name == 'workflow_dispatch' }} | ||
# needs: build-test-matrix-wasm | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to amend similar line in
e2e-wasm
?