Skip to content

Commit

Permalink
Update canary.yml
Browse files Browse the repository at this point in the history
add retry to avoid gradle download failure
  • Loading branch information
wangzlei authored Jun 16, 2021
1 parent e055a7d commit ce758a9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,14 @@ jobs:
repository: aws-observability/aws-otel-test-framework
path: test-framework
- name: validate sample
run: |
cp ${{ matrix.expected_template }} test-framework/validator/src/main/resources/expected-data-template/lambdaExpectedTrace.mustache
cd test-framework
./gradlew :validator:run --args="-c default-lambda-validation.yml --endpoint ${{ steps.extract-endpoint.outputs.stdout }} --region $AWS_REGION"
uses: nick-invision/retry@v2
with:
timeout_seconds: 600
max_attempts: 3
command: |
cp ${{ matrix.expected_template }} test-framework/validator/src/main/resources/expected-data-template/lambdaExpectedTrace.mustache
cd test-framework
./gradlew :validator:run --args="-c default-lambda-validation.yml --endpoint ${{ steps.extract-endpoint.outputs.stdout }} --region $AWS_REGION"
- name: Destroy terraform
if: always()
run: terraform destroy -auto-approve
Expand Down

0 comments on commit ce758a9

Please sign in to comment.