From aa90ec6d970ed8810dde780916be948be54c2985 Mon Sep 17 00:00:00 2001 From: Jennifer Bell Date: Thu, 13 Jun 2024 15:35:35 +0000 Subject: [PATCH] refactor(ci/github): run weaver tests on schedule, re-use workflows Primary change: Creates a central workflow to run all 13 weaver test workflows from either a push, a pull request, a github command, or a schedule. Passes a 'run_all' boolean to sub-workflows to specify if all tests should be run, not just those with changes. Secondary changes: - update concurrency groups to allow triggering from central workflow - remove ability to run the 13 workflows individually to declutter ci menu check whether RUN_ALL can be calculated in the environment instead of as a job rename weaver test file update actionlint to latest Depends on #3446 Signed-off-by: Jennifer Bell --- .github/workflows/ci_weaver.yaml | 67 +++++++++++++++++++ .../test_weaver-asset-exchange-besu.yaml | 15 ++--- .../test_weaver-asset-exchange-corda.yaml | 16 ++--- .../test_weaver-asset-exchange-fabric.yaml | 17 ++--- .../workflows/test_weaver-asset-transfer.yaml | 16 ++--- .../test_weaver-corda-interop-app.yaml | 14 ++-- .../workflows/test_weaver-data-sharing.yaml | 18 +++-- .../workflows/test_weaver-docker-build.yaml | 19 +++--- .../test_weaver-fabric-fabric-satp.yaml | 14 ++-- .github/workflows/test_weaver-go.yaml | 41 +++++++----- .github/workflows/test_weaver-node-pkgs.yaml | 13 ++-- .../workflows/test_weaver-pre-release.yaml | 14 ++-- .github/workflows/test_weaver-relay.yaml | 15 +++-- 13 files changed, 174 insertions(+), 105 deletions(-) create mode 100644 .github/workflows/ci_weaver.yaml diff --git a/.github/workflows/ci_weaver.yaml b/.github/workflows/ci_weaver.yaml new file mode 100644 index 0000000000..5dba3cc52b --- /dev/null +++ b/.github/workflows/ci_weaver.yaml @@ -0,0 +1,67 @@ +name: Weaver_CI + +# Controls when the workflow will run +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + schedule: + # run at 1am the first day of every month + - cron: "0 1 1 * *" + +env: + RUN_ALL: "${{github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}" + +jobs: + + fabric-fabric-satp: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-fabric-fabric-satp.yaml + asset-exchange-corda: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-asset-exchange-corda.yaml + asset-transfer: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-asset-transfer.yaml + relay: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-relay.yaml + corda-interop-app: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-corda-interop-app.yaml + pre-release: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-pre-release.yaml + asset-exchange-fabric: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-asset-exchange-fabric.yaml + data-sharing: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-data-sharing.yaml + node-pkgs: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-node-pkgs.yaml + docker-build: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-docker-build.yaml + asset-exchange-besu: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-asset-exchange-besu.yaml + go: + with: + run_all: $RUN_ALL + uses: ./.github/workflows/test_weaver-go.yaml + diff --git a/.github/workflows/test_weaver-asset-exchange-besu.yaml b/.github/workflows/test_weaver-asset-exchange-besu.yaml index 740f932915..41f9442c0b 100644 --- a/.github/workflows/test_weaver-asset-exchange-besu.yaml +++ b/.github/workflows/test_weaver-asset-exchange-besu.yaml @@ -7,17 +7,14 @@ env: # Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: asset-exchange-besu-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel diff --git a/.github/workflows/test_weaver-asset-exchange-corda.yaml b/.github/workflows/test_weaver-asset-exchange-corda.yaml index 6748ee1008..5f9e9a155b 100644 --- a/.github/workflows/test_weaver-asset-exchange-corda.yaml +++ b/.github/workflows/test_weaver-asset-exchange-corda.yaml @@ -9,16 +9,14 @@ name: Test Asset Exchange Corda # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: asset-exchange-corda-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -137,7 +135,7 @@ jobs: asset-exchange-corda-local: needs: check_code_changed - if: needs.check_code_changed.outputs.status == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' # The type of runner that the job will run on runs-on: ubuntu-22.04 diff --git a/.github/workflows/test_weaver-asset-exchange-fabric.yaml b/.github/workflows/test_weaver-asset-exchange-fabric.yaml index bf0b2db6da..29870464c8 100644 --- a/.github/workflows/test_weaver-asset-exchange-fabric.yaml +++ b/.github/workflows/test_weaver-asset-exchange-fabric.yaml @@ -11,18 +11,15 @@ env: # Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - - pull_request: - branches: [ main ] - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: asset-exchange-fabric-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -122,7 +119,7 @@ jobs: asset-exchange-fabric-local: needs: check_code_changed - if: needs.check_code_changed.outputs.status == 'true' + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' }} # if: ${{ false }} # The type of runner that the job will run on runs-on: ubuntu-22.04 diff --git a/.github/workflows/test_weaver-asset-transfer.yaml b/.github/workflows/test_weaver-asset-transfer.yaml index a601cb14e1..964d4c47e3 100644 --- a/.github/workflows/test_weaver-asset-transfer.yaml +++ b/.github/workflows/test_weaver-asset-transfer.yaml @@ -12,16 +12,14 @@ env: # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: asset-transfer-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -687,7 +685,7 @@ jobs: asset-transfer-local: needs: check_code_changed - if: needs.check_code_changed.outputs.status == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' # if: ${{ false }} # The type of runner that the job will run on runs-on: ubuntu-22.04 diff --git a/.github/workflows/test_weaver-corda-interop-app.yaml b/.github/workflows/test_weaver-corda-interop-app.yaml index 7151769001..03c2c3274a 100644 --- a/.github/workflows/test_weaver-corda-interop-app.yaml +++ b/.github/workflows/test_weaver-corda-interop-app.yaml @@ -8,13 +8,15 @@ name: Unit Test Corda Interop App on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string + concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: corda-interop-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -36,7 +38,7 @@ jobs: unit_test_interop_cordapp: needs: check_code_changed - if: needs.check_code_changed.outputs.interop_cordapp_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.interop_cordapp_changed == 'true' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 diff --git a/.github/workflows/test_weaver-data-sharing.yaml b/.github/workflows/test_weaver-data-sharing.yaml index a7cdacf6a6..06c6bcece5 100644 --- a/.github/workflows/test_weaver-data-sharing.yaml +++ b/.github/workflows/test_weaver-data-sharing.yaml @@ -11,17 +11,15 @@ env: # Controls when the workflow will run on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: data-sharing-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true # A workflow run is made up of one or more jobs that can run sequentially or in parallel @@ -410,7 +408,7 @@ jobs: data-sharing-docker-local: needs: check_code_changed - if: needs.check_code_changed.outputs.status == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' # if: ${{ false }} # The type of runner that the job will run on runs-on: ubuntu-22.04 @@ -835,7 +833,7 @@ jobs: data-sharing-local: needs: check_code_changed - if: needs.check_code_changed.outputs.status == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.status == 'true' # if: ${{ false }} # The type of runner that the job will run on runs-on: ubuntu-22.04 diff --git a/.github/workflows/test_weaver-docker-build.yaml b/.github/workflows/test_weaver-docker-build.yaml index 507009f2e8..05f67e623a 100644 --- a/.github/workflows/test_weaver-docker-build.yaml +++ b/.github/workflows/test_weaver-docker-build.yaml @@ -8,13 +8,14 @@ env: NODEJS_VERSION: v18.18.2 on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: docker-build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -61,7 +62,7 @@ jobs: build_docker_relay: needs: check_code_changed - if: needs.check_code_changed.outputs.relay_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.relay_changed == 'true' # if: ${{ false }} runs-on: ubuntu-22.04 steps: @@ -74,7 +75,7 @@ jobs: build_docker_fabric_driver_local: needs: check_code_changed - if: needs.check_code_changed.outputs.fabric_driver_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.fabric_driver_changed == 'true' # if: ${{ false }} runs-on: ubuntu-22.04 steps: @@ -126,7 +127,7 @@ jobs: build_docker_corda_driver_local: needs: check_code_changed - if: needs.check_code_changed.outputs.corda_driver_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.corda_driver_changed == 'true' runs-on: ubuntu-22.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -186,7 +187,7 @@ jobs: build_docker_iin_agent_local: needs: check_code_changed - if: needs.check_code_changed.outputs.iin_agent_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.iin_agent_changed == 'true' runs-on: ubuntu-22.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/test_weaver-fabric-fabric-satp.yaml b/.github/workflows/test_weaver-fabric-fabric-satp.yaml index aa649c16fa..600a5188ed 100644 --- a/.github/workflows/test_weaver-fabric-fabric-satp.yaml +++ b/.github/workflows/test_weaver-fabric-fabric-satp.yaml @@ -7,16 +7,14 @@ name: Secure Test Asset Transfer # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - pull_request: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: fabric-satp-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: diff --git a/.github/workflows/test_weaver-go.yaml b/.github/workflows/test_weaver-go.yaml index 3537d79901..9fbdacdb21 100644 --- a/.github/workflows/test_weaver-go.yaml +++ b/.github/workflows/test_weaver-go.yaml @@ -5,16 +5,23 @@ name: Unit Test Fabric Interop CC and Sample Chaincode on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: go-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: + + debug_event_type: + runs-on: ubuntu-22.04 + steps: + - run: echo "${{ github.event_name }}" + check_code_changed: outputs: interopcc_changed: ${{ steps.changes.outputs.interopcc_changed }} @@ -61,7 +68,7 @@ jobs: unit_test_interopcc: needs: check_code_changed - if: needs.check_code_changed.outputs.interopcc_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -85,7 +92,7 @@ jobs: unit_test_assetmgmt: needs: check_code_changed - if: needs.check_code_changed.outputs.interopcc_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' # if: ${{ false }} # disable runs-on: ubuntu-22.04 steps: @@ -110,7 +117,7 @@ jobs: build_test_libs_utils: needs: check_code_changed - if: needs.check_code_changed.outputs.interopcc_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -130,7 +137,7 @@ jobs: build_test_libs_assetexchange: needs: check_code_changed - if: needs.check_code_changed.outputs.interopcc_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -150,7 +157,7 @@ jobs: unit_test_sdk: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gosdk_changed == 'true' }} + if: inputs.run_all == 'true' || ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gosdk_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -174,7 +181,7 @@ jobs: build_test_cli: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gocli_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gocli_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -194,7 +201,7 @@ jobs: unit_test_simplestate: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simplestate_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simplestate_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -218,7 +225,7 @@ jobs: unit_test_satpsimpleasset: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.satpsimpleasset_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.satpsimpleasset_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -242,7 +249,7 @@ jobs: unit_test_simpleasset: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleasset_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleasset_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -266,7 +273,7 @@ jobs: unit_test_simpleassetandinterop: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleassetandinterop_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleassetandinterop_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -290,7 +297,7 @@ jobs: unit_test_simpleassettransfer: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleassettransfer_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.simpleassettransfer_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 @@ -314,7 +321,7 @@ jobs: unit_test_sdk_membership: needs: check_code_changed - if: ${{ needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gosdk_changed == 'true' }} + if: ${{ inputs.run_all == 'true' || needs.check_code_changed.outputs.interopcc_changed == 'true' || needs.check_code_changed.outputs.gosdk_changed == 'true' }} runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4.1.1 diff --git a/.github/workflows/test_weaver-node-pkgs.yaml b/.github/workflows/test_weaver-node-pkgs.yaml index f6a75d81a2..50cee2b9ab 100644 --- a/.github/workflows/test_weaver-node-pkgs.yaml +++ b/.github/workflows/test_weaver-node-pkgs.yaml @@ -12,13 +12,14 @@ env: NODEJS_NEXT_LTS_VERSION: v20.9.0 on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: node-pkg-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -133,6 +134,8 @@ jobs: working-directory: weaver/core/identity-management/iin-agent build-docs: + needs: check_code_changed + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.docs_changed == 'true' runs-on: ubuntu-22.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/test_weaver-pre-release.yaml b/.github/workflows/test_weaver-pre-release.yaml index b15c2bfc03..207f7964fd 100644 --- a/.github/workflows/test_weaver-pre-release.yaml +++ b/.github/workflows/test_weaver-pre-release.yaml @@ -5,12 +5,14 @@ name: Pre-release Test Weaver Module versions on: - pull_request: - branches: - - main + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: pre-release-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -34,7 +36,7 @@ jobs: test_weaver_pre-release: needs: check_release - if: needs.check_release.outputs.status == 'continue' + if: inputs.run_all == 'true' || needs.check_release.outputs.status == 'continue' runs-on: ubuntu-22.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -143,7 +145,7 @@ jobs: test_weaver_go_pre-release: needs: check_release - if: needs.check_release.outputs.status == 'continue' + if: inputs.run_all == 'true' || needs.check_release.outputs.status == 'continue' runs-on: ubuntu-22.04 steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/.github/workflows/test_weaver-relay.yaml b/.github/workflows/test_weaver-relay.yaml index 27e6718e6e..2c31b0928c 100644 --- a/.github/workflows/test_weaver-relay.yaml +++ b/.github/workflows/test_weaver-relay.yaml @@ -5,13 +5,14 @@ name: Unit Test Relay on: - push: - branches: [ main ] - pull_request: - branches: [ main ] + workflow_call: + inputs: + run_all: + required: true + type: string concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + group: relay-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: @@ -34,7 +35,7 @@ jobs: unit_test_relay_local: needs: check_code_changed - if: needs.check_code_changed.outputs.relay_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.relay_changed == 'true' # if: ${{ false }} runs-on: ubuntu-22.04 steps: @@ -87,7 +88,7 @@ jobs: unit_test_relay_tls_local: needs: check_code_changed - if: needs.check_code_changed.outputs.relay_changed == 'true' + if: inputs.run_all == 'true' || needs.check_code_changed.outputs.relay_changed == 'true' # if: ${{ false }} runs-on: ubuntu-22.04 steps: