Skip to content

Commit

Permalink
Keep EC2 Integration Tests Open
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon committed Apr 15, 2024
1 parent 676fd4c commit 83ce55f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ec2-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
if: steps.cache_if_success.outputs.cache-hit != 'true'
uses: nick-fields/retry@v2
with:
max_attempts: 3
max_attempts: 1
timeout_minutes: 60
retry_wait_seconds: 5
command: |
Expand Down Expand Up @@ -113,16 +113,16 @@ jobs:
-var="excluded_tests='${{ matrix.arrays.excludedTests }}'" \
-var="ssh_key_name=${{env.KEY_NAME}}" \
-var="test_dir=${{ matrix.arrays.test_dir }}" \
-var="agent_start=${{ matrix.arrays.agentStartCommand }}"; then terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" -auto-approve
-var="agent_start=${{ matrix.arrays.agentStartCommand }}"; then echo done
else
terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" -auto-approve && exit 1
echo fail && exit 1
fi
#This is here just in case workflow cancel
- name: Terraform destroy
if: ${{ cancelled() || failure() }}
uses: nick-fields/retry@v2
with:
max_attempts: 3
max_attempts: 1
timeout_minutes: 8
retry_wait_seconds: 5
command: cd ${{ inputs.test_dir }} && terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" --auto-approve
command: cd ${{ inputs.test_dir }}

0 comments on commit 83ce55f

Please sign in to comment.