Quick Start
Get Actions Insights running in your workflow with sensible defaults. All four output channels are enabled except the history repository.
Minimal Workflow
permissions:
contents: read
pull-requests: write
checks: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: dotnet test --logger "trx;LogFileName=results.trx"
- name: Publish test report
uses: mzbrau/actions-insights@v1
with:
test-results: '**/*.trx'
This configuration:
- Posts a PR comment with failure details (when running on a pull request)
- Writes a workflow summary with failed and slow tests
- Publishes a GitHub Check with annotations
- Uploads an HTML report as a workflow artifact
Supported Formats
| Format | File patterns |
|---|---|
| TRX | *.trx |
| JUnit XML | *.xml (JUnit schema) |
| NUnit XML | *.xml (NUnit schema) |
| xUnit XML | *.xml (xUnit schema) |
What Happens Next
After your workflow runs:
- Open the pull request to see the test summary comment
- Open the workflow run to see the job summary table
- Download the
actions-insights-reportartifact for the full interactive HTML report
Customise Your Setup
The defaults work for most teams, but you can enable or disable individual outputs:
- Choose Your Outputs — decision guide for each output channel
- Prepare Test Output — ensure your test runner writes compatible files
- Example Workflows — common configuration patterns
Full Reference
See the Configuration Reference for every input and output.