From f6dc568a40a100fbd6c375da225b9338002689cb Mon Sep 17 00:00:00 2001 From: Ian Moroney Date: Sun, 5 May 2024 21:42:50 +0100 Subject: [PATCH] add tests back to ci --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ .github/workflows/test-report.yml | 1 + 2 files changed, 23 insertions(+) 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: