An action to push JUnit files to Ably's test observability server.
-
server-url
: the server to publish results to - see action.yml for the default value -
server-auth
: authentication key for the server. Theably
GitHub organization has an org-wideTEST_OBSERVABLILITY_SERVER_AUTH_KEY
secret. It is recommended that you make this secret available to your repository and then use this secret as theserver-auth
input. -
path
: where to look for*.junit
files -
github-token
(optional): A GitHub access token. If provided, the action will perform a GitHub API call in order to discover the web URL for the current job, and will include this URL in the observability server upload. If the repository is private you must use an access token with therepo
scope. -
job-name
(optional): Thename
property of the object corresponding to the current job in the response from the "list jobs for a workflow run attempt" GitHub API. See the sample workflow for an example of how to calculate this value. If there is more than one object in the response whosename
property equals this value, the action will fail.If you specify
github-token
but notjob-name
, and the response from this API contains more than one job, the action will fail.
Workflow step:
- name: Upload test results
if: always()
uses: ably/test-observability-action@v1
with:
server-auth: ${{ secrets.TEST_OBSERVABLILITY_SERVER_AUTH_KEY }}
path: '.'
github-token: ${{ secrets.GITHUB_TOKEN }}