From 0cab6a11d279456902cd32608ce8d618e1ebe87a Mon Sep 17 00:00:00 2001 From: Weiko Date: Thu, 17 Aug 2023 12:00:45 -0700 Subject: [PATCH] Set 3 workers for storybook coverage (#1255) * Set 3 workers for storybook coverage * fix * fix * fix * change ubuntu-latest to ci-4-cores * fix --- .github/workflows/ci-front.yaml | 2 +- front/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index a5b149a5d..f23d6169a 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -6,7 +6,7 @@ on: pull_request_target: jobs: front-test: - runs-on: ubuntu-latest + runs-on: ci-4-cores env: REACT_APP_SERVER_BASE_URL: http://localhost:3000 steps: diff --git a/front/package.json b/front/package.json index 06ac7d7a0..fbbbb3fd1 100644 --- a/front/package.json +++ b/front/package.json @@ -68,7 +68,7 @@ "storybook:dev": "storybook dev -p 6006 -s ../public", "storybook:test": "test-storybook", "storybook:build": "storybook build -s public", - "storybook:coverage": "test-storybook --coverage && npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook --check-coverage", + "storybook:coverage": "test-storybook --coverage --maxWorkers=3 && npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook --check-coverage", "graphql:generate": "dotenv cross-var graphql-codegen --config codegen.js", "chromatic": "dotenv cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN" },