From c2b9526f85883c2aebbcbb8040b5c7d6d1818aa4 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Fri, 30 Aug 2024 15:32:14 -0600 Subject: [PATCH] try this logic on for size --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c92a49b9bc..a24874eff5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -127,11 +127,11 @@ jobs: shell: bash - name: Is feature branch - if: ${{ env.IS_FEATURE_BRANCH_PR }} + if: ${{ env.IS_FEATURE_BRANCH_PR == 'true'}} run: echo "It's a feature branch" - name: Is a release branch - if: ${{ env.IS_RELEASE_BRANCH_PR }} + if: ${{ env.IS_RELEASE_BRANCH_PR == 'true'}} run: echo "It's a release branch" - uses: actions/checkout@v4 @@ -174,22 +174,22 @@ jobs: shell: bash -l {0} - name: Start dfx - if: ${{ env.IS_FEATURE_BRANCH_PR }} + if: ${{ env.IS_FEATURE_BRANCH_PR == 'true' }} working-directory: ${{ matrix.tests.path }} run: dfx start --clean --background --host 127.0.0.1:8000 --artificial-delay 0 - name: Start dfx with artifcial delay - if: ${{ env.IS_RELEASE_BRANCH_PR }} + if: ${{ env.IS_RELEASE_BRANCH_PR == 'true' }} working-directory: ${{ matrix.tests.path }} run: dfx start --clean --background --host 127.0.0.1:8000 - name: Run test run: | - IS_MERGE_TO_MAIN_FROM_RELEASE=${{ env.IS_MAIN_BRANCH && contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'demergent-labs/release--') }} + IS_MERGE_TO_MAIN_FROM_RELEASE=${{ env.IS_MAIN_BRANCH == 'true' && contains(github.event.head_commit.message, 'Merge pull request') && contains(github.event.head_commit.message, 'demergent-labs/release--') }} if $IS_MERGE_TO_MAIN_FROM_RELEASE; then RUNS=100 - elif ${{ env.IS_RELEASE_BRANCH_PR && !env.IS_MAIN_BRANCH }}; then + elif ${{ env.IS_RELEASE_BRANCH_PR == 'true' && env.IS_MAIN_BRANCH == 'false' }}; then RUNS=10 else RUNS=5