diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82b2e76..8e7e313 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: - main workflow_dispatch: +permissions: + actions: read + checks: write + jobs: build-test: name: Build & Test @@ -26,3 +30,21 @@ jobs: with: name: test-results path: __tests__/__results__/*.xml + + - name: Create test report + uses: ./ + with: + artifact: test-results + name: Workflow Report + path: '*.xml' + reporter: jest-junit + + - name: Create mochawesome report + uses: ./ + if: success() || failure() + with: + name: Mochawesome Tests + path: __tests__/fixtures/mochawesome-json.json + reporter: mochawesome-json + fail-on-error: false + \ No newline at end of file diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 04d73d5..3462126 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -8,6 +8,7 @@ on: permissions: actions: read + checks: write jobs: report: