Skip to content

fix mocha report

fix mocha report #10

Workflow file for this run

name: Integration Tests
on: [push, pull_request]
permissions:
checks: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Run Tests
run: |
yarn install
yarn test:report
- name: Publish Results
uses: dorny/test-reporter@v1
id: test-reporter
if: success() || failure() # run this step even if previous step failed
with:
name: Integration Tests
only-summary: "false"
list-suites: "all"
list-tests: "all"
fail-on-error: "true"
reporter: "mocha-json"
path: |
results.json
# TODO: Add PR Comment
- name: Add PR Comment
run: |
echo ${{steps.test-reporter.outputs.url_html}}