diff --git a/.github/workflows/scheduled.yaml b/.github/workflows/scheduled.yaml index b192787d..39294ec8 100644 --- a/.github/workflows/scheduled.yaml +++ b/.github/workflows/scheduled.yaml @@ -29,7 +29,27 @@ jobs: - name: Run Tests run: | - cargo nextest run \ - --features test-clarity-v${{ matrix.clarity_version }} \ - --test wasm-generation \ - --test standard + cargo nextest run \ + --features test-clarity-v${{ matrix.clarity_version }} \ + --test wasm-generation \ + --test standard + + - name: Send message to Slack + uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0 + if: ${{ failure() }} + with: + channel-id: ${{ secrets.CHANNEL_ID }} + payload: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "GitHub Actions workflow Clarity::V${{ matrix.clarity_version }} failed." + } + } + ] + } + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}