From f123df7c740068dd69e0a502daa03668b3385a98 Mon Sep 17 00:00:00 2001 From: Karolina Rakoczy Date: Tue, 17 May 2022 10:07:05 +0200 Subject: [PATCH] Fix running tests on schedule (#2050) * Fix running tests on schedule * add notify slack if revert snashot job fail --- .github/workflows/tests-nightly.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests-nightly.yml b/.github/workflows/tests-nightly.yml index 757f5e6a5..f3f52c8d8 100644 --- a/.github/workflows/tests-nightly.yml +++ b/.github/workflows/tests-nightly.yml @@ -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/