From 41724d5f800d049d5762f05b7adb1496b58e08fb Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 3 Sep 2024 15:01:45 -0400 Subject: [PATCH] Codecov Test Results reporting (#91) * report test results * ensure reporter --outputFile --- .github/workflows/tests.yaml | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index d59c3f9..83a5ea1 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -61,3 +61,9 @@ jobs: files: coverage/cobertura-coverage.xml token: ${{ secrets.CODECOV_TOKEN }} slug: great-expectations/jsonforms-antd-renderers + + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/package.json b/package.json index 10de27f..c86c441 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "build:cjs": "tsc -p tsconfig.cjs.json", "prepack": "pnpm run build", "test": "vitest", - "test:cov": "vitest run --coverage", + "test:cov": "vitest run --coverage --reporter=junit --outputFile=./junit.xml", "tsc": "tsc", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", "format:write": "prettier . --write",