Skip to content

Commit

Permalink
update env logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Aug 30, 2024
1 parent 0e319a4 commit 50f898c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,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
Expand Down

0 comments on commit 50f898c

Please sign in to comment.