@@ -41,16 +41,16 @@ jobs:
41
41
helm repo add couchbase https://couchbase-partners.github.io/helm-charts/
42
42
helm repo update
43
43
helm install default --values deployment/operator-values.yaml couchbase/couchbase-operator
44
- - name : wait for cluster to come up
44
+ - name : wait for cluster to come up
45
45
run : |
46
- sleep 180
46
+ sleep 180
47
47
- name : set IPAddress and IpPort
48
48
run : |
49
49
echo "envIpAddress=$(kubectl get nodes -o jsonpath='{.items[*].status.addresses[?(@.type=="InternalIP")].address}')" >> $GITHUB_ENV
50
50
echo "envIpPort=$(kubectl get svc default-couchbase-cluster-ui -o jsonpath='{.spec.ports[].nodePort}')" >> $GITHUB_ENV
51
- - name : combine to full connection string
51
+ - name : combine to full connection string
52
52
run : |
53
- echo "connectionString=$(echo "http://${envIpAddress}:${envIpPort}?network=external" | sed -e 's/[]$.*[\^]/\\&/g' )" | xargs >> $GITHUB_ENV
53
+ echo "connectionString=$(echo "http://${envIpAddress}:${envIpPort}?network=external" | sed -e 's/[]$.*[\^]/\\&/g' )" | xargs >> $GITHUB_ENV
54
54
- name : fix connection string
55
55
run : |
56
56
echo "${{ env.connectionString }}"
68
68
69
69
- name : Run tests with Maven
70
70
run : mvn -B test --file pom.xml
71
+ - name : Report Status
72
+ if : always()
73
+ uses : ravsamhq/notify-slack-action@v1
74
+ with :
75
+ status : ${{ job.status }}
76
+ notify_when : ' failure,warnings'
77
+ notification_title : ' {workflow} on *{repo}*'
78
+ message_format : ' {emoji} *{status_message}* in <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>'
79
+ footer : ' <{run_url}|View Full Run on GitHub>'
80
+ env :
81
+ SLACK_WEBHOOK_URL : ${{ secrets.ACTION_MONITORING_SLACK }}
82
+
0 commit comments