Fix running tests on schedule (#2050)

* Fix running tests on schedule

* add notify slack if revert snashot job fail
This commit is contained in:
Karolina Rakoczy 2022-05-17 10:07:05 +02:00 committed by GitHub
parent f843c9a732
commit f123df7c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,6 +70,17 @@ jobs:
SALEOR_CLI_ENV: staging
run: npx saleor backup restore MbdG5UXd
- name: Notify Slack
if: ${{ failure() }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_SNAP_RESTORE }}
SLACK_USERNAME: RevertSnapshotBot
SLACK_COLOR: ${{ job.status }}
SLACK_TITLE: "Revert to snapshot job failed"
SLACK_MESSAGE: "https://github.com/saleor/saleor-dashboard/actions/workflows/tests-nightly.yml"
MSG_MINIMAL: true
run-tests-in-parallel:
needs: revert-automation-env-to-snap
if: always() #Wait for revert-automation-env-to-snap, bot run always, even if skipped
@ -104,7 +115,7 @@ jobs:
node-version: 14
- name: Cypress run
if: ${{ github.event.inputs.tests == 'All' }}
if: ${{ github.event.inputs.tests != 'Critical' }}
uses: cypress-io/github-action@v2
env:
API_URI: ${{ steps.get-env-uri.outputs.ENV_URI }}graphql/