From ff20a7bd8f528adb5eacfc5c6800915a84ded5c5 Mon Sep 17 00:00:00 2001 From: rabi-siddique Date: Wed, 21 Aug 2024 13:06:07 +0500 Subject: [PATCH] ci: trigger liquidation tests with emerynet --- .github/workflows/liquidation-reconstitution.yml | 5 ++--- .github/workflows/liquidation.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/liquidation-reconstitution.yml b/.github/workflows/liquidation-reconstitution.yml index 128fa9c6..00df897c 100644 --- a/.github/workflows/liquidation-reconstitution.yml +++ b/.github/workflows/liquidation-reconstitution.yml @@ -37,7 +37,6 @@ on: pull_request: types: - labeled - - unlabeled - synchronize concurrency: @@ -47,7 +46,7 @@ concurrency: jobs: run-e2e: if: >- - github.event_name != 'pull_request' || github.event_name == 'schedule' || + 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 @@ -56,7 +55,7 @@ jobs: 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 }} diff --git a/.github/workflows/liquidation.yml b/.github/workflows/liquidation.yml index b3162e21..8d2861b0 100644 --- a/.github/workflows/liquidation.yml +++ b/.github/workflows/liquidation.yml @@ -37,7 +37,6 @@ on: pull_request: types: - labeled - - unlabeled - synchronize concurrency: @@ -47,7 +46,7 @@ concurrency: jobs: run-e2e: if: >- - github.event_name != 'pull_request' || github.event_name == 'schedule' || + github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'liquidation-testing') uses: ./.github/workflows/reusable-workflow.yml @@ -56,7 +55,7 @@ jobs: 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 }}