Test ~ Backstop screen tests #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (C) 2024 GoodData Corporation | |
name: Test ~ Backstop screen tests | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 6 * * 1-5' | |
jobs: | |
e2e-backstop: | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: read | |
uses: ./.github/workflows/rw-rush-build-e2e-tests-backstop.yml | |
secrets: inherit | |
slack-notification: | |
runs-on: | |
group: infra1-runners-arc | |
labels: runners-small | |
if: ${{ !cancelled() }} | |
needs: [e2e-backstop] | |
steps: | |
- name: Notify to slack | |
uses: slackapi/[email protected] | |
with: | |
channel-id: "#javascript-notifications" | |
slack-message: "${{env.ICON}} The scheduled backstop tests for *gooddata-ui-sdk* dispatched by *${{env.DISPATCHED_BY}}* finished with result *${{env.TEST_RESULT_BACKSTOP}}*. Check the *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|log here>*" | |
env: | |
TEST_RESULT_BACKSTOP: ${{ needs.e2e-backstop.result }} | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
ICON: ${{ needs.e2e-backstop.result == 'success' && '✅' || '❌' }} | |
DISPATCHED_BY: ${{ github.event_name == 'workflow_dispatch' && github.actor || 'cron scheduler' }} |