Skip to content

Commit

Permalink
chore(CI): work out Nx-related CI flakiness (#9664)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Dec 13, 2023
1 parent 9a3ffde commit 6027041
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 211 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ blog-test-project/*
# For esbuild.
**/meta.json
**/meta.*.json

.nx/cache
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

# Do not format Markdown files to allow easier documentation contribution
*.md

/.nx/cache
27 changes: 11 additions & 16 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx-cloud",
"options": {
"cacheableOperations": [
"test",
"build"
],
"parallel": 5,
"accessToken": "ODMxYWQ1ZjgtMTJhNi00M2Q1LTg1YTAtNTk3NjFkNzNmZjk0fHJlYWQ="
}
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",

"namedInputs": {
"default": [
"{projectRoot}/**/*"
],

"prod": [
"!{projectRoot}/**/*.test.{js,jsx,ts,tsx}",
"{workspaceRoot}/babel.config.js",
Expand All @@ -28,6 +18,7 @@
}
]
},

"targetDefaults": {
"build": {
"inputs": [
Expand All @@ -36,14 +27,18 @@
],
"dependsOn": [
"^build"
]
],
"cache": true
},
"test": {
"inputs": [
"default",
"^prod"
]
],
"cache": true
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"

"nxCloudAccessToken": "ODMxYWQ1ZjgtMTJhNi00M2Q1LTg1YTAtNTk3NjFkNzNmZjk0fHJlYWQ=",
"parallel": 5
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,14 @@
"fs-extra": "11.2.0",
"jest": "29.7.0",
"jscodeshift": "0.15.0",
"lerna": "7.4.2",
"lerna": "8.0.0",
"listr2": "6.6.1",
"make-dir-cli": "3.0.0",
"msw": "1.3.2",
"ncp": "2.0.0",
"nodemon": "3.0.2",
"npm-packlist": "7.0.4",
"nx": "16.10.0",
"nx-cloud": "16.5.2",
"nx": "17.2.3",
"octokit": "2.1.0",
"ora": "7.0.1",
"prompts": "2.4.2",
Expand Down
Loading

0 comments on commit 6027041

Please sign in to comment.