From b53a93760dcb85ec9778d7b49515eef4e35807ba Mon Sep 17 00:00:00 2001 From: Radek Jajko Date: Thu, 1 Feb 2024 01:51:57 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Change=20coverage=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/coverage.yml | 11 +++++------ .gitignore | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 10ab3ea..1193f4a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -11,12 +11,11 @@ jobs: - name: Setup node uses: actions/setup-node@v4 with: - node-version: 18.13 - cache: 'npm' + node-version: 18.13 + cache: 'npm' - run: npm ci - name: Test Report - uses: ArtiomTr/jest-coverage-report-action@v2.2.6 + uses: ArtiomTr/jest-coverage-report-action@v2 with: - name: Jest Tests - test-script: npm run test:coverage - coverage-file: coverage.json + test-script: npm run test:ci:coverage + coverage-file: report.json diff --git a/.gitignore b/.gitignore index 8e0b7dd..3321da7 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ # testing /coverage -coverage.json +report.json # production /build diff --git a/package.json b/package.json index 3cf1856..396523b 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "test": "vitest", "test:ci": "vitest run", "test:coverage": "vitest run --coverage", - "test:ci:coverage": "vitest run --coverage --reporter=json --outputFile=coverage.json", + "test:ci:coverage": "vitest run --coverage --reporter=json --outputFile=report.json", "build": "CI=false && tsc && vite build", "preview": "vite preview", "format": "npx prettier --write .",