Skip to content

Commit

Permalink
Merge pull request #343 from Agoric/rs-label-triggered-liquidation-tests
Browse files Browse the repository at this point in the history
ci: label triggered liquidation testing
  • Loading branch information
rabi-siddique committed Aug 21, 2024
2 parents db9966d + ff20a7b commit 543cdaf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/liquidation-reconstitution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,28 @@ on:
required: false
default: latest
type: string
pull_request:
types:
- labeled
- synchronize

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
github.head_ref || github.ref }}'
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-e2e:
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'liquidation-reconstitution-testing')
uses: ./.github/workflows/reusable-workflow.yml
with:
docker_compose_command: |
docker compose -f test/e2e/docker-compose-reconstitution.yml \
--profile synpress up --build \
--exit-code-from synpress
is_emerynet_test: ${{ inputs.network == 'emerynet' }}
is_emerynet_test: ${{ inputs.network == 'emerynet' || contains(github.event.pull_request.labels.*.name, 'emerynet') }}
user1_mnemonic: ${{ inputs.user1_mnemonic }}
user1_address: ${{ inputs.user1_address }}
bidder_mnemonic: ${{ inputs.bidder_mnemonic }}
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/liquidation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,28 @@ on:
required: false
default: latest
type: string
pull_request:
types:
- labeled
- synchronize

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label ||
github.head_ref || github.ref }}'
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run-e2e:
if: >-
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
contains(github.event.pull_request.labels.*.name, 'liquidation-testing')
uses: ./.github/workflows/reusable-workflow.yml
with:
docker_compose_command: |
docker compose -f test/e2e/docker-compose-liquidation.yml \
--profile synpress up --build \
--exit-code-from synpress
is_emerynet_test: ${{ inputs.network == 'emerynet' }}
is_emerynet_test: ${{ inputs.network == 'emerynet' || contains(github.event.pull_request.labels.*.name, 'emerynet') }}
user1_mnemonic: ${{ inputs.user1_mnemonic }}
user1_address: ${{ inputs.user1_address }}
bidder_mnemonic: ${{ inputs.bidder_mnemonic }}
Expand Down

0 comments on commit 543cdaf

Please sign in to comment.