{"id":17340803,"url":"https://github.com/kenfdev/playwright-report-slack-action","last_synced_at":"2025-10-27T15:30:29.474Z","repository":{"id":238428175,"uuid":"796546441","full_name":"kenfdev/playwright-report-slack-action","owner":"kenfdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-15T11:42:25.000Z","size":55,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-19T21:43:01.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenfdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-06T06:51:57.000Z","updated_at":"2024-05-06T14:09:40.000Z","dependencies_parsed_at":"2024-05-06T07:26:05.047Z","dependency_job_id":"cb71338a-a36b-4cd1-8504-3fc5f0479d97","html_url":"https://github.com/kenfdev/playwright-report-slack-action","commit_stats":null,"previous_names":["kenfdev/playwright-report-slack-action"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaywright-report-slack-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaywright-report-slack-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaywright-report-slack-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfdev%2Fplaywright-report-slack-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenfdev","download_url":"https://codeload.github.com/kenfdev/playwright-report-slack-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238517282,"owners_count":19485532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T15:46:33.992Z","updated_at":"2025-10-27T15:30:29.102Z","avatar_url":"https://github.com/kenfdev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Playwright Test Reporter to Slack\nThis GitHub Action parses Playwright test results from a JSON file and sends a formatted report to a Slack channel using an Incoming Webhook. It is designed to help teams monitor test outcomes directly in Slack, providing quick insights into test failures and successes.\n\n![](./assets/slack.png)\n\n## Features\n- **Test Result Summarization:** Summarizes the test results showing the number of passed and failed tests.\n- **Failed Test Details:** Lists only the failed tests\n- **Optional Artifact Link:** Includes a downloadable link to test artifacts if provided.\n\n## Inputs\n- `results-json-path`: Required Path to the JSON file containing Playwright test results.\n- `artifact-url`: Optional URL to the test artifact for downloading directly from Slack.\n\n## Environment Variables\n`SLACK_WEBHOOK_URL`: Required The Incoming Webhook URL provided by Slack.\n\n## Usage\nBelow is an example of how to set up this action in your .github/workflows directory:\n\n```yaml\nname: Playwright Test\non: [push]\n\njobs:\n  report_to_slack:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n      - name: Run Playwright tests\n        run: PLAYWRIGHT_JSON_OUTPUT_NAME=report/report.json npx playwright test --reporter=json\n      - name: Upload report to GitHub Actions Artifacts\n        id: report-upload-step\n        uses: actions/upload-artifact@v4\n        if: ${{ !cancelled() }}\n        with:\n          name: report\n          path: report/\n          retention-days: 30\n      - name: Report to slack\n        uses: kenfdev/playwright-report-slack-action\n        with:\n          results-json-path: 'report.json'\n          artifact-url: ${{ steps.report-upload-step.outputs.artifact-url }}\n        env:\n          SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}\n```\n\n## Setup Slack\n1. Create an Incoming Webhook:\n  - Navigate to your Slack App configurations and create an incoming webhook.\n    Select the Slack channel where messages will be posted and save the webhook URL.\n2. Add the Webhook URL to GitHub Secrets:\n  - Go to your repository settings on GitHub.\n  - Click on Secrets and add SLACK_WEBHOOK_URL with the URL you obtained from Slack.\n\n## Local Development\nTo test and modify this action locally:\n\n- Ensure you have jq installed on your machine.\n- Clone the repository and make changes to the main.sh script.\n- Run tests to ensure the script processes the JSON file correctly.\n\n## License\nDistributed under the MIT License. See LICENSE for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fplaywright-report-slack-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenfdev%2Fplaywright-report-slack-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfdev%2Fplaywright-report-slack-action/lists"}