Skip to content

Commit 13eb53d

Browse files
committed
add debugging and try catch
1 parent c5d7498 commit 13eb53d

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/test.yaml

+26-5
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
######################
5353
# Test Action itself #
5454
######################
55-
- name: Test Action
55+
- name: Test With Log Tail
5656
uses: ./
5757
with:
5858
# Pre created
@@ -74,10 +74,31 @@ jobs:
7474
-c
7575
echo "Hello, World!" && \
7676
echo "$TEST_VAR" && \
77-
echo "Goodbye, World!"
77+
x=0; while [ $x -le 10 ]; do echo "Sleeping..." && x=$(( $x + 1 )) && sleep 2; done
7878
override-container-environment: |
7979
TEST_VAR=foobar123
8080
81-
task-wait-until-stopped: true
82-
task-start-max-wait-time: 120
83-
task-stopped-max-wait-time: 300
81+
######################
82+
# Test Action itself #
83+
######################
84+
- name: Test Failure Exit Code
85+
uses: ./
86+
with:
87+
# Pre created
88+
cluster: github-gha
89+
task-definition: arn:aws:ecs:${{ vars.AWS_TESTING_REGION }}:${{ vars.AWS_TESTING_ACCOUNT_ID }}:task-definition/github-gha-alpine
90+
91+
assign-public-ip: 'ENABLED'
92+
security-group-ids: |
93+
sg-09a0ccb78d5be2a25
94+
subnet-ids: |
95+
subnet-08bbfd6c53b0c1049
96+
subnet-0fef13a6bef01f61a
97+
subnet-0a676289b4a27a7fa
98+
99+
tail-logs: false
100+
override-container: alpine
101+
override-container-command: |
102+
/bin/sh
103+
-c
104+
exit 1

0 commit comments

Comments
 (0)