Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/content/docs/ci-insights/setup/github-actions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,20 @@ jobs:
reports the same name. A step's `env` applies to that step alone, so a name
set on the step that runs your tests never reaches the upload step.

When the upload goes through `gha-mergify-ci`, the action's `job_name` input
sets the name reported with that step's results:

```yaml
- uses: mergifyio/gha-mergify-ci@@@GHA_MERGIFY_CI_VERSION@@
with:
token: ${{ secrets.MERGIFY_TOKEN }}
report_path: test-results-*.xml
job_name: test (${{ matrix.version }})
```

`job_name` takes precedence over `MERGIFY_TEST_JOB_NAME` when both are set.
Leave it out and the name set on the job applies.

### Key Environment Variables

- `MERGIFY_TOKEN`: Application key with `ci` scope for uploading test results to Test Insights
Expand Down
Loading