Skip to content

Commit

Permalink
chore: update ci command
Browse files Browse the repository at this point in the history
  • Loading branch information
BroKun committed Oct 19, 2023
1 parent 4c44110 commit 5db5e95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,10 @@ jobs:

- name: Run linters and tests
run: pnpm run ci:affected
env:
JEST_MAX_WORKER: ${{ env.JEST_MAX_WORKER }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const configs = {
transformIgnorePatterns: [
'^/node_modules/(?!react-dnd|dnd-core|query-string|@react-dnd)',
],

maxWorkers: process.env.JEST_MAX_WORKER || '100%',
coveragePathIgnorePatterns: [
'/dist/',
'/lib/',
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "JavaScript + Python hybrid monorepo",
"scripts": {
"bootstrap": "./scripts/bootstrap.sh",
"test:jest": "jest",
"test:jest": "jest --logHeapUsage --show-config",
"coverage": "nx run-many --target=coverage",
"coverage:jest": "jest --coverage",
"postinstall": "is-ci || husky install",
Expand All @@ -16,8 +16,8 @@
"lint:prettier": "prettier --check --ignore-unknown .",
"lint-staged": "lint-staged",
"test": "nx run-many --target=test",
"ci": "nx run-many --target=lint:prettier,lint,test,coverage:jest,coverage",
"ci:affected": "nx affected --target=lint:prettier,lint,test,coverage:jest,coverage",
"ci": "nx run-many --target=lint:prettier,lint,test,test:jest",
"ci:affected": "nx affected --target=lint:prettier,lint,test:jest,coverage:jest",
"docs": "nx run @difizen/mana-docs:start",
"changeset": "changeset",
"clean": "git clean -fX ."
Expand Down

0 comments on commit 5db5e95

Please sign in to comment.