From 1ed7a11fc3bcfe26533dc535f4a74916e772b3ed Mon Sep 17 00:00:00 2001 From: munja Date: Sun, 7 Aug 2022 14:03:59 +0100 Subject: [PATCH] chore: testing json payload --- .github/workflows/build.yml | 2 +- sasjs-cypress-run.sh => sasjs-tests/sasjs-cypress-run.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename sasjs-cypress-run.sh => sasjs-tests/sasjs-cypress-run.sh (81%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a3ad5bc..5988625 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,7 +88,7 @@ jobs: replace-in-files --regex='"sasjsTestsUrl".*' --replacement='"sasjsTestsUrl":"${{ secrets.SASJS_TEST_URL_VIYA }}",' ./cypress.json replace-in-files --regex='"username".*' --replacement='"username":"${{ secrets.SASJS_USERNAME }}",' ./cypress.json replace-in-files --regex='"password".*' --replacement='"password":"${{ secrets.SASJS_PASSWORD }}",' ./cypress.json - sh ./sasjs-cypress-run.sh ${{ secrets.MATRIX_TOKEN }} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} + sh ./sasjs-tests/sasjs-cypress-run.sh ${{ secrets.MATRIX_TOKEN }} https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} # For some reason if coverage report action is run before other commands, those commands can't access the directories and files on which they depend on - name: Generate coverage report diff --git a/sasjs-cypress-run.sh b/sasjs-tests/sasjs-cypress-run.sh similarity index 81% rename from sasjs-cypress-run.sh rename to sasjs-tests/sasjs-cypress-run.sh index 13ade8a..72d821f 100755 --- a/sasjs-cypress-run.sh +++ b/sasjs-tests/sasjs-cypress-run.sh @@ -3,6 +3,7 @@ if npm run cy:run -- --spec "cypress/integration/sasjs.tests.ts" ; then echo "Cypress sasjs testing passed!" else + echo "curling: Automated sasjs-tests failed on the @sasjs/adapter PR on following link.\n" $2 curl -XPOST -d '{"msgtype":"m.text", "body":"content":"Automated sasjs-tests failed on the @sasjs/adapter PR on following link.\n'$2'"}' https://matrix.4gl.io/_matrix/client/r0/rooms/%21BDUPBPEGVvRLKLQUxY:4gl.io/send/m.room.message?access_token=$1 echo "Cypress sasjs testing failed!" exit 1