1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

chore: sending message to slack if cypress with sasjs-tests fails

This commit is contained in:
2021-07-26 19:38:59 +02:00
parent cf10e83e91
commit e5262a18d4
2 changed files with 11 additions and 2 deletions

9
sasjs-cypress-run.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
if npm run cy:run -- --spec "cypress/integration/sasjs.tests.ts" ; then
echo "Cypress sasjs testing passed!"
else
curl -X POST --data-urlencode "payload={\"channel\":\"#sasjs\", \"username\":\"GitHub CI\", \"text\":\"Publish of a @sasjs/adapter has been canceled because of the failing sasjs-tests!\", \"icon_emoji\":\":warning:\"}" $1
echo "Cypress sasjs testing failed!"
exit 1
fi