Fix running tests on schedule (#2050)
* Fix running tests on schedule * add notify slack if revert snashot job fail
This commit is contained in:
parent
f843c9a732
commit
f123df7c74
1 changed files with 12 additions and 1 deletions
13
.github/workflows/tests-nightly.yml
vendored
13
.github/workflows/tests-nightly.yml
vendored
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue