1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-05 11:40:06 +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

View File

@@ -75,14 +75,14 @@ jobs:
replace-in-files --regex='"sasjsTestsUrl".*' --replacement='"sasjsTestsUrl":"${{ secrets.SASJS_TEST_URL_VIYA }}",' ./cypress.json
replace-in-files --regex='"username".*' --replacement='"username":"${{ secrets.SAS_USERNAME }}",' ./cypress.json
replace-in-files --regex='"password".*' --replacement='"password":"${{ secrets.SAS_PASSWORD }}",' ./cypress.json
npm run cy:run -- --spec "cypress/integration/sasjs.tests.ts"
sh ./sasjs-cypress-run.sh ${{ secrets.SLACK_WEBHOOK }}
- name: Run cypress on sas9
run: |
replace-in-files --regex='"sasjsTestsUrl".*' --replacement='"sasjsTestsUrl":"${{ secrets.SASJS_TEST_URL_SAS9 }}",' ./cypress.json
replace-in-files --regex='"username".*' --replacement='"username":"${{ secrets.SAS_USERNAME }}",' ./cypress.json
replace-in-files --regex='"password".*' --replacement='"password":"${{ secrets.SAS_PASSWORD }}",' ./cypress.json
npm run cy:run -- --spec "cypress/integration/sasjs.tests.ts"
sh ./sasjs-cypress-run.sh ${{ secrets.SLACK_WEBHOOK }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2