From 9959fd7357518c4ed71521bfe23e941031d492e9 Mon Sep 17 00:00:00 2001 From: Damien Butt <22627489+damienbutt@users.noreply.github.com> Date: Sun, 25 Feb 2024 02:52:48 +0000 Subject: [PATCH] ci: use npm script for test:coverage --- .github/workflows/main.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3f546d..4061784 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: run: pnpm lint - name: Test - run: pnpm test --coverage --maxWorkers=2 + run: pnpm test:coverage - name: Cache Coverage id: cache-coverage diff --git a/package.json b/package.json index 1f41944..3ae32d3 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "build": "tsup", "pretest": "pnpm resolve:crcomlib", "test": "vitest --passWithNoTests", - "test:coverage": "pnpm clean:coverage && pnpm resolve:crcomlib && vitest --passWithNoTests --coverage", + "test:coverage": "pnpm clean:coverage && pnpm resolve:crcomlib && vitest --passWithNoTests --coverage --maxWorkers=2", "lint": "tsc && eslint . --fix", "prepare": "husky", "size": "size-limit",