Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN committed Dec 17, 2023
1 parent c0f6f17 commit 6e7b30c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/dapr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ env:
# Enable tests on ARM64
ENABLE_ARM: "false"
# Space-separated of supported Azure regions: one will be picked randomly for each cluster
AZURE_REGIONS: ("westus3","eastus","eastus2")
AZURE_REGIONS: ("westus3" "eastus" "eastus2")
AZURE_ARM_REGIONS: "eastus"
# Container registry where to cache e2e test images
DAPR_CACHE_REGISTRY: "daprhzkacr.azurecr.io"
Expand Down Expand Up @@ -137,10 +137,14 @@ jobs:
# Select one random Azure region
REGIONS=(${{ env.AZURE_REGIONS }})
REGIONS_SIZE=${#REGIONS[@]}
REGIONS_IDX=$(($RANDOM % $REGIONS_SIZE))
REGION1=${REGIONS[$REGIONS_IDX]}
REGIONS_IDX1=$(($RANDOM % $REGIONS_SIZE))
REGIONS_IDX2=$(($RANDOM % $REGIONS_SIZE))
while [ $REGIONS_IDX1 -eq $REGIONS_IDX2 ]; do
REGIONS_IDX2=$(($RANDOM % $REGIONS_SIZE))
done
REGION1=${REGIONS[$REGIONS_IDX1]}
echo "REGION1=${REGION1}" >> $GITHUB_ENV
REGION2=${REGIONS[$REGIONS_IDX]}
REGION2=${REGIONS[$REGIONS_IDX2]}
echo "REGION2=${REGION2}" >> $GITHUB_ENV
REGION3=${{ env.AZURE_ARM_REGIONS }}
echo "REGION3=${REGION3}" >> $GITHUB_ENV
Expand Down

0 comments on commit 6e7b30c

Please sign in to comment.