This GitHub Action sends test execution results to a Microsoft Teams channel. It provides detailed information about test runs, including pass/fail statistics, test suite details, and environment information.
- Sends a Microsoft Teams Adaptive Card with test results
- Displays test suite name, environment details (OS, browser)
- Shows test statistics (passed, failed, flaky tests)
- Provides link to download test artifacts
- Easily reusable across repositories
- name: Notify Microsoft Teams
uses: your-org/notify-tests-teams-action@v1
with:
webhook_url: ${{ secrets.TEAMS_WEBHOOK_URL }}
bot_image_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
repo: ${{ github.repository }}
suite_name: "E2E Tests"
gitref: ${{ github.ref }}
os: ${{ runner.os }}
browser: "Chrome"
passed: ${{ steps.test.outputs.passed }}
failed: ${{ steps.test.outputs.failed }}
flaky: ${{ steps.test.outputs.flaky }}
gh_action_url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}