https://github.com/test-results-reporter/publish
Github Action for testbeats publish command
https://github.com/test-results-reporter/publish
ci github github-actions test-reporting test-results testbeats
Last synced: 3 months ago
JSON representation
Github Action for testbeats publish command
- Host: GitHub
- URL: https://github.com/test-results-reporter/publish
- Owner: test-results-reporter
- License: mit
- Created: 2024-12-11T08:20:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T23:03:50.000Z (about 1 year ago)
- Last Synced: 2025-06-06T16:11:28.781Z (about 1 year ago)
- Topics: ci, github, github-actions, test-reporting, test-results, testbeats
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/testbeats-publish
- Size: 1.74 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README

# TestBeats Publish GitHub Action

[](https://github.com/test-results-reporter/publish/actions/workflows/check-dist.yml)
[](https://github.com/test-results-reporter/publish/actions/workflows/codeql-analysis.yml)

[](https://github.com/test-results-reporter/publish/stargazers)
GitHub Action for
[testbeats](https://github.com/test-results-reporter/testbeats) publish command.
Read more about the project at https://testbeats.com
## How to use TestBeats Publish GitHub Action
Below is an example of Testbeats action in a workflow file. To include the
action in a workflow, you can use the `uses` syntax with the `@` symbol to
reference a specific branch, tag, or commit hash.
#### Example Workflow using `config` file
```yaml
# .github/workflows/testbeats.yml
# This workflow will publish test results to slack
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Test
id: npm-ci-test
run: npm run test
- name: TestBeats Publish
uses: test-results-reporter/publish@v1
with:
config: .testbeats.json # TestBeats configuration file path
```
#### Example Workflow using CLI params
```yaml
# .github/workflows/testbeats.yml
# This workflow will publish test results to slack including CI info and chart test summary
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Test
id: npm-ci-test
run: npm run test
- name: TestBeats Publish
uses: test-results-reporter/publish@v1
with:
slack: ${{ secrets.SLACK_WEBHOOK_URL }}
mocha: ./test/mocha/results.xml
ci-info: true
chart-test-summary: true
```
### Example Workflow using CLI params and testbeats api key
```yaml
# .github/workflows/testbeats.yml
# This workflow will publish test results to TestBeats
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Test
id: npm-ci-test
run: npm run test
- name: TestBeats Publish
uses: test-results-reporter/publish@v1
with:
slack: ${{ secrets.SLACK_WEBHOOK_URL }}
mocha: ./test/mocha/results.xml
api-key: ${{ secrets.TESTBEATS_API_KEY }}
project: ${{ github.repository }} # Optional
run: ${{ github.branch_name }} # Optional
```
## Support
Like this project! ⭐ Star it on
[Github](https://github.com/test-results-reporter/publish/stargazers) and follow
on [Twitter](https://twitter.com/testbeatsapp). Your support means a lot to us.
## Contributors
If you've ever wanted to contribute to open source, and a great cause, now is
your chance! See the
[contributing docs](https://github.com/test-results-reporter/publish/blob/master/CONTRIBUTING.md)
for more information.
Thanks to all the people who contribute.