Set 3 workers for storybook coverage (#1255)
* Set 3 workers for storybook coverage * fix * fix * fix * change ubuntu-latest to ci-4-cores * fix
This commit is contained in:
2
.github/workflows/ci-front.yaml
vendored
2
.github/workflows/ci-front.yaml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
pull_request_target:
|
pull_request_target:
|
||||||
jobs:
|
jobs:
|
||||||
front-test:
|
front-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ci-4-cores
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
REACT_APP_SERVER_BASE_URL: http://localhost:3000
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@ -68,7 +68,7 @@
|
|||||||
"storybook:dev": "storybook dev -p 6006 -s ../public",
|
"storybook:dev": "storybook dev -p 6006 -s ../public",
|
||||||
"storybook:test": "test-storybook",
|
"storybook:test": "test-storybook",
|
||||||
"storybook:build": "storybook build -s public",
|
"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",
|
"graphql:generate": "dotenv cross-var graphql-codegen --config codegen.js",
|
||||||
"chromatic": "dotenv cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
|
"chromatic": "dotenv cross-var npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user