Skip to content

Commit

Permalink
chore: disable nx cloud in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemhiller authored Nov 6, 2024
1 parent 5b1a07b commit c7e2495
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 4 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ references:
IGNORE_COMMIT_MESSAGE: 'chore(release): publish'
NODE_OPTIONS: '--max_old_space_size=8196'
CIRCLE_TEST_REPORTS: /tmp/test-results
NX_CLOUD: false

yarn_cache_key_1: &yarn_cache_key_1 v2-yarn-{{ arch }}-{{ checksum "yarn.lock" }}

Expand Down
10 changes: 7 additions & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"build-storybook"
],
"parallel": 3,
"useDaemonProcess": false,
"accessToken": "ZmVjZWYxNzctYTdmZC00ODYzLTg4MzEtZTE1YTVmZDdkZmY1fHJlYWQ="
}
}
Expand All @@ -26,6 +25,10 @@
},
"namedInputs": {
"babelConfig": ["{workspaceRoot}/babel.defaults.js"],
"ci": [
"{workspaceRoot}/.circleci/config.yml",
"{workspaceRoot}/.github/push.yml"
],
"default": ["{projectRoot}/**/*"],
"production": [
"default",
Expand All @@ -37,15 +40,16 @@
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production", "babelConfig"]
"inputs": ["production", "^production", "babelConfig", "ci"]
},
"test": {
"dependsOn": ["^build"],
"inputs": [
"default",
"^production",
"{workspaceRoot}/jest.preset.js",
"babelConfig"
"babelConfig",
"ci"
]
}
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
"build-all": "yarn build",
"build-storybook": "nx run styleguide:build-storybook && lerna run copy-storybook",
"build:graph": "nx graph",
"clear-modules": "lerna clean -y && rm -rf node_modules",
"clean-builds": "nx run-many --target=clean --all",
"clear-modules": "yarn clean-builds && lerna clean -y && rm -rf node_modules",
"deploy": "cp -r ./dist/static/* ./dist/docs && gh-pages -b gh-pages -d dist",
"format": "yarn lint:fix && yarn prettier --write",
"format:verify": "yarn prettier --check",
Expand Down
8 changes: 8 additions & 0 deletions packages/gamut-icons/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@
},
"test": {
"executor": "@nx/jest:jest",
"dependsOn": ["build"],
"outputs": ["{workspaceRoot}/coverage/packages/gamut-icons"],
"options": {
"jestConfig": "packages/gamut-icons/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
7 changes: 7 additions & 0 deletions packages/gamut-illustrations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"jestConfig": "packages/gamut-illustrations/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
7 changes: 7 additions & 0 deletions packages/gamut-patterns/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@
"jestConfig": "packages/gamut-patterns/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
8 changes: 8 additions & 0 deletions packages/gamut-styles/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@
},
"test": {
"executor": "@nx/jest:jest",
"dependsOn": ["^build"],
"outputs": ["{workspaceRoot}/coverage/packages/gamut-styles"],
"options": {
"jestConfig": "packages/gamut-styles/jest.config.ts",
"passWithNoTests": false
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
7 changes: 7 additions & 0 deletions packages/gamut-tests/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"jestConfig": "packages/gamut-tests/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
8 changes: 8 additions & 0 deletions packages/gamut/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@
}
},
"test": {
"dependsOn": ["^build"],
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/packages/gamut"],
"options": {
"jestConfig": "packages/gamut/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down
7 changes: 7 additions & 0 deletions packages/variance/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
"jestConfig": "packages/variance/jest.config.ts",
"passWithNoTests": true
}
},
"clean": {
"executor": "nx:run-commands",
"options": {
"cwd": "{projectRoot}",
"command": "rm -rf ./dist"
}
}
},
"tags": []
Expand Down

0 comments on commit c7e2495

Please sign in to comment.