This repository provides a YAML file for automating the integration between GitHub Actions and Slack API, facilitating the transmission of test automation reports to Slack channels. The automation includes sending counts of passed, failed, and skipped tests, along with the success rate.
Follow these steps to generate the Slack API:
- Navigate to the Slack API website.
- Click on "Your Apps" to access your Slack apps dashboard.
- Create a new app by selecting "Create New App."
- Choose the "From scratch" option and provide the app name.
- Select your workspace and click "Create App."
- Enable "Incoming Webhooks" and add a new webhook to your workspace.
- Authorize permissions and select the channel for sending messages.
- After approval, you'll receive the Slack Webhook URL.
To connect the Slack API with your GitHub repository, follow these steps:
- Go to setting of your repository
- Select "Secrets and variables" from the side menu of the repository settings.
- In the "Secrets" section, click on "New repository secret".
- Add the SLACK_WEBHOOK_URL secrets.
- Click on "Add secret" to save it.
This repository's YAML file automates the transmission of test automation reports to Slack using GitHub Actions. It specifically works with Maven Surefire reports.
Contributions are welcome! Feel free to submit issues or pull requests to improve this integration.