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

fix: utils import, tests fix, auto testing script

This commit is contained in:
2022-04-28 20:46:36 +02:00
parent aabe473ef6
commit 7b78f65c4a
8 changed files with 6248 additions and 2008 deletions

View File

@@ -3,7 +3,8 @@
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
curl -X POST --header "Content-Type:application/json" --data '{"username":"GitHub CI - Adapter SASJS-TESTS (FAIL)", "content":"Publish of a @sasjs/adapter has been canceled because of the failing sasjs-tests!", "avatar_url":"https://i.ibb.co/Lpk7Xvq/error-outline.png"}' https://discord.com/api/webhooks/969275140087111690/NGowOKrzk-ejP4gkOB-N4-cCPoWFPIux9OEvMGqX73jJxXQqD7H9AhCL_dpxYBJrP0Oi
# 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