File tree Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Expand file tree Collapse file tree 1 file changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Nightly Acceptance Tests
2+
3+ on :
4+ schedule :
5+ # Will run at 00:00 every day
6+ - cron : " 0 0 * * *"
7+
8+ jobs :
9+ nightly :
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ products :
14+ - account
15+ - applesilicon
16+ - baremetal
17+ - billing
18+ - block
19+ - cockpit
20+ - container
21+ - dedibox
22+ - documentdb
23+ - domain
24+ - edge_services
25+ - flexibleip
26+ - function
27+ - iam
28+ - inference
29+ - init
30+ - instance
31+ - iot
32+ - ipam
33+ - jobs
34+ - k8s
35+ - key_manager
36+ - lb
37+ - login
38+ - marketplace
39+ - mnq
40+ - mongodb
41+ - object
42+ - rdb
43+ - redis
44+ - registry
45+ - sdb
46+ - secret
47+ - tem
48+ - vpc
49+ - vpcgw
50+ - webhosting
51+ runs-on : ubuntu-latest
52+ steps :
53+ # Checkout should always be before setup-go to ensure caching is working
54+ - name : Checkout
55+ uses : actions/checkout@v4
56+ - name : Install Go
57+ uses : actions/setup-go@v5
58+ with :
59+ go-version : 1.22
60+ - name : Run Acceptance Tests
61+ run : go test -v ./internal/namespaces/${{ matrix.products }} -timeout=4h
62+ env :
63+ CLI_UPDATE_CASSETTES : true
64+ SCW_DEBUG : 1
65+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
66+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
67+ SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
68+ SCW_DEFAULT_PROJECT_ID : ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
69+ - name : Ping on failure
70+ if : ${{ failure() }}
71+ run : |
72+ curl -X POST -H 'Content-type: application/json' \
73+ --data '{
74+ "blocks": [
75+ {
76+ "type": "section",
77+ "text": {
78+ "type": "mrkdwn",
79+ "text": "'"Scaleway CLI Nightly workflow failed: <https://github.com/scaleway/scaleway-cli/actions/runs/${GITHUB_RUN_ID}|${FAILED_PRODUCT}>"'"
80+ }
81+ }
82+ ]
83+ }' \
84+ ${SLACK_WEBHOOK_NIGHTLY};
85+ env :
86+ SLACK_WEBHOOK_NIGHTLY : ${{ secrets.SLACK_WEBHOOK_NIGHTLY }}
87+ FAILED_PRODUCT : ${{ matrix.products }}
You can’t perform that action at this time.
0 commit comments