Skip to content

Commit

Permalink
ci: temporarily disable Slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp committed Jun 13, 2024
1 parent 1873d11 commit a952d97
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,14 @@ jobs:
npx playwright merge-reports --reporter html ./all-blob-reports
npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
- name: Notify Slack
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.head_ref == 'main'
run: npx playwright-slack-report -j merged_reports.json -c tests/playwright-slack-conf.json
env:
SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
RESULTS_VERSION: ${{ matrix.version }}
RESULTS_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
# FIXME(serhalp) Once we recover access to the SquidlifyBot Slack App, reenable this.
# - name: Notify Slack
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.head_ref == 'main'
# run: npx playwright-slack-report -j merged_reports.json -c tests/playwright-slack-conf.json
# env:
# SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
# RESULTS_VERSION: ${{ matrix.version }}
# RESULTS_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}

- name: Upload HTML report
uses: actions/upload-artifact@v4
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,13 @@ jobs:
with:
name: ${{matrix.version_spec.selector}}-test-results.json
path: report/test-results.json
- name: Notify Slack
if: ${{ (success() || failure()) && github.event_name == 'schedule' }}
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
with:
payload: ${{ steps.publish-test-results.outputs.slackEvent }}

# FIXME(serhalp) Once we recover access to the SquidlifyBot Slack App, reenable this.
# - name: Notify Slack
# if: ${{ (success() || failure()) && github.event_name == 'schedule' }}
# uses: slackapi/[email protected]
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# with:
# payload: ${{ steps.publish-test-results.outputs.slackEvent }}

0 comments on commit a952d97

Please sign in to comment.