Send Mocha JSON test results to New Relic Log API.
jobs:
test:
steps:
# ...
- name: Run tests
run: mocha --reporter json --reporter-option="output=results.json"
- uses: pavelsaman/send-mocha-test-results-to-nr@v1
with:
new-relic-license-key: ${{ secrets.NEWRELIC_LICENSE_KEY }}
New Relic license key for ingestion
Required: true
Filename with (Mocha) test results in JSON format.
Required: false
Default: ./results.json
Whether to fail the pipeline if there is a problem - e.g. when test-result-filename
was not found.
Required: false
Default: 0
(do not fail)
If set to 1
, prints more info to stdout - data sent to New Relic, GitHub properties. Useful for debugging only.
Required: false
Default: 0
Whether to upload test artifact.
Required: false
Default: 1
(upload)
Custom job id of the job this action was called from.
Required: false
Link to New Relic dashboard that will be printed in step summary on Summary page.
Required: false
New Relic Log API url. Depends on where the data is stored, e.g. in EU (https://log-api.eu.newrelic.com/log/v1
), or US (https://log-api.newrelic.com/log/v1
).
Required: false
Default: https://log-api.newrelic.com/log/v1