mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-10 17:04:36 +00:00
11 lines
511 B
Bash
Executable File
11 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if npm run cy:run -- --spec "cypress/integration/sasjs.tests.ts" ; then
|
|
echo "Cypress sasjs testing passed!"
|
|
else
|
|
echo '{"msgtype":"m.text", "body":"Automated sasjs-tests failed on the @sasjs/adapter PR: '$2'"}'
|
|
curl -XPOST -d '{"msgtype":"m.text", "body":"Automated sasjs-tests failed on the @sasjs/adapter PR: '$2'"}' https://matrix.4gl.io/_matrix/client/r0/rooms/%21jRebyiGmHZlpfDwYXN:4gl.io/send/m.room.message?access_token=$1
|
|
echo "Cypress sasjs testing failed!"
|
|
exit 1
|
|
fi
|