Skip to content

Commit

Permalink
test10
Browse files Browse the repository at this point in the history
  • Loading branch information
guyrenny committed Nov 13, 2023
1 parent 639956f commit 11b161c
Showing 1 changed file with 27 additions and 28 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,25 @@ jobs:
terraform plan
fi
- name: Terraform apply
continue-on-error: true
run: |
if [[ ${{ matrix.package }} != "locals_variables" ]]; then
cd "tests/${{ matrix.package }}"
terraform apply -auto-approve
fi
- name: Terraform apply
run: |
if [[ ${{ matrix.package }} != "locals_variables" ]]; then
cd "tests/${{ matrix.package }}"
terraform apply -auto-approve
fi
# - name: Terraform apply
# continue-on-error: true
# run: |
# if [[ ${{ matrix.package }} != "locals_variables" ]]; then
# cd "tests/${{ matrix.package }}"
# terraform apply -auto-approve
# fi
# - name: Terraform apply
# run: |
# if [[ ${{ matrix.package }} != "locals_variables" ]]; then
# cd "tests/${{ matrix.package }}"
# terraform apply -auto-approve
# fi

- name: send log to log group
continue-on-error: true
run: |
aws logs put-log-events \
--log-group-name "gr-test"\
--log-stream-name "test2" \
--log-group-name "gr-test" --log-stream-name "test2" \
--log-events "[{\"timestamp\": $(date +%s)000, \"message\": \"This is a log message sent to CloudWatch.\"}]"
- name: Validate Lambda Function
Expand All @@ -129,19 +128,19 @@ jobs:
--log-group-name "/aws/lambda/$logGroupName" \
--filter-pattern "ERROR"
- name: Terraform destroy
continue-on-error: true
run: |
if [[ ${{ matrix.package }} != "locals_variables" ]];then
cd "tests/${{ matrix.package }}"
terraform destroy -auto-approve
fi
- name: Terraform destroy in case of an error
run: |
if [[ ${{ matrix.package }} != "locals_variables" ]];then
cd "tests/${{ matrix.package }}"
terraform destroy -auto-approve
fi
# - name: Terraform destroy
# continue-on-error: true
# run: |
# if [[ ${{ matrix.package }} != "locals_variables" ]];then
# cd "tests/${{ matrix.package }}"
# terraform destroy -auto-approve
# fi
# - name: Terraform destroy in case of an error
# run: |
# if [[ ${{ matrix.package }} != "locals_variables" ]];then
# cd "tests/${{ matrix.package }}"
# terraform destroy -auto-approve
# fi



0 comments on commit 11b161c

Please sign in to comment.