diff --git a/.github/workflows/cli-addon-tests.yml b/.github/workflows/cli-addon-tests.yml index 5e5355507..c7ab14f0a 100644 --- a/.github/workflows/cli-addon-tests.yml +++ b/.github/workflows/cli-addon-tests.yml @@ -85,6 +85,92 @@ jobs: uses: actions/upload-artifact@v3 if: failure() || ${{ github.event_name }} != 'push' with: - name: playwright-report - path: playwright-report/ + name: ${{ matrix.label }}-playwright-report + path: ci-tests/playwright-report retention-days: 30 + + - name: Send Slack message + if: success() + id: slack-success + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "${{ github.workflow }} Succeeded :large_green_circle:", + "emoji": true + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "${{ matrix.label }}" + } + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "action_id": "basic_success_view", + "text": { + "type": "plain_text", + "text": "View Job" + }, + "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + + - name: Send Slack message + if: failure() + id: slack-failure + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "header", + "text": { + "type": "plain_text", + "text": "${{ github.workflow }} Failed :red_circle:", + "emoji": true + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "${{ matrix.label }}" + } + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "action_id": "basic_failure_view", + "text": { + "type": "plain_text", + "text": "View Job" + }, + "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + } + ] + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK diff --git a/README.md b/README.md index 3c718c569..91ea68f73 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ # Pantheon Systems Decoupled Kits +Tests: [![CircleCI](https://circleci.com/gh/pantheon-systems/decoupled-kit-js/tree/canary.svg?style=svg)](https://circleci.com/gh/pantheon-systems/decoupled-kit-js/tree/canary) +![Headless regression testing](https://github.com/pantheon-systems/decoupled-kit-js/actions/workflows/cli-addon-tests.yml/badge.svg) +![Canary Release](https://github.com/pantheon-systems/decoupled-kit-js/actions/workflows/canary-release.yml/badge.svg) +![Split Canary Sites](https://github.com/pantheon-systems/decoupled-kit-js/actions/workflows/canary-sites-split.yml/badge.svg) +![Starter Split and Changesets](https://github.com/pantheon-systems/decoupled-kit-js/actions/workflows/release-and-split.yml/badge.svg) + - [Prerequisites](#prerequisites) - [Getting Started](#getting-started) - [Versions and Releases](#versions-and-releases)