File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 9
9
pull_request :
10
10
branches :
11
11
- main
12
+ schedule :
13
+ # “At 00:00 on Sunday.”
14
+ - cron : " 0 0 * * 0"
15
+ workflow_dispatch :
12
16
13
17
jobs :
14
18
run-it-tests-job :
44
48
pip install localstack awscli-local[ver1]
45
49
docker pull localstack/localstack
46
50
# Start LocalStack in the background
47
- localstack start -d
51
+ LS_LOG=trace localstack start -d
48
52
# Wait 30 seconds for the LocalStack container to become ready before timing out
49
53
echo "Waiting for LocalStack startup..."
50
54
localstack wait -t 30
67
71
if : always()
68
72
run : |
69
73
localstack logs
74
+
75
+ - name : Send a Slack notification
76
+ if : failure() || github.event_name != 'pull_request'
77
+ uses : ravsamhq/notify-slack-action@v2
78
+ with :
79
+ status : ${{ job.status }}
80
+ token : ${{ secrets.GITHUB_TOKEN }}
81
+ notification_title : " {workflow} has {status_message}"
82
+ message_format : " {emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
83
+ footer : " Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
84
+ notify_when : " failure"
85
+ env :
86
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
87
+
88
+ - name : Generate a Diagnostic Report
89
+ if : failure()
90
+ run : |
91
+ curl -s localhost:4566/_localstack/diagnose | gzip -cf > diagnose.json.gz
92
+
93
+ - name : Upload the Diagnostic Report
94
+ if : failure()
95
+ uses : actions/upload-artifact@v3
96
+ with :
97
+ name : diagnose.json.gz
98
+ path : ./diagnose.json.gz
You can’t perform that action at this time.
0 commit comments