<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> Populating the local registry for e2e tests is not dependent on the builds but runs them. It sometimes gets cache misses for some builds thus making that inconsistent. https://staging.nx.app/runs/FxIwbj6UQo/task/%40nx%2Fnx-source%3Apopulate-local-registry-storage ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> Populating the local registry for e2e tests is dependent on the builds and does not run them within itself. In the CI pipeline, this ensures that the build tasks are run first. https://staging.nx.app/runs/NUrFeUBbQk/task/%40nx%2Fnx-source%3Apopulate-local-registry-storage ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #
231 lines
5.7 KiB
JSON
231 lines
5.7 KiB
JSON
{
|
|
"$schema": "packages/nx/schemas/nx-schema.json",
|
|
"namedInputs": {
|
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
|
"production": [
|
|
"default",
|
|
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
|
|
"!{projectRoot}/tsconfig.spec.json",
|
|
"!{projectRoot}/jest.config.[jt]s",
|
|
"!{projectRoot}/.eslintrc.json",
|
|
"!{projectRoot}/.storybook/**/*",
|
|
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)",
|
|
"!{projectRoot}/tsconfig.storybook.json",
|
|
"!{projectRoot}/src/test-setup.[jt]s"
|
|
],
|
|
"sharedGlobals": [
|
|
"{workspaceRoot}/babel.config.json",
|
|
"{workspaceRoot}/.nx/workflows/agents.yaml",
|
|
"{workspaceRoot}/.circleci/config.yml"
|
|
],
|
|
"native": [
|
|
"{projectRoot}/**/*.rs",
|
|
"{projectRoot}/**/Cargo.*",
|
|
{
|
|
"runtime": "node -p '`${process.platform}_${process.arch}`'"
|
|
}
|
|
],
|
|
"e2eInputs": [
|
|
"default",
|
|
"{workspaceRoot}/jest.preset.js",
|
|
"{workspaceRoot}/.verdaccio/config.yml",
|
|
"{workspaceRoot}/scripts/local-registry/**/*",
|
|
"{workspaceRoot}/scripts/nx-release.ts",
|
|
{
|
|
"env": "SELECTED_CLI"
|
|
},
|
|
{
|
|
"env": "SELECTED_PM"
|
|
},
|
|
{
|
|
"env": "NX_E2E_CI_CACHE_KEY"
|
|
},
|
|
{
|
|
"env": "CI"
|
|
},
|
|
{
|
|
"env": "NX_E2E_RUN_E2E"
|
|
}
|
|
]
|
|
},
|
|
"release": {
|
|
"projects": [
|
|
"packages/*",
|
|
"packages/nx/native-packages/*",
|
|
"packages-legacy/*"
|
|
],
|
|
"releaseTagPattern": "{version}",
|
|
"changelog": {
|
|
"workspaceChangelog": {
|
|
"createRelease": "github",
|
|
"file": false
|
|
},
|
|
"git": {
|
|
"commit": false,
|
|
"stageChanges": false,
|
|
"tag": false
|
|
}
|
|
},
|
|
"version": {
|
|
"generatorOptions": {
|
|
"packageRoot": "build/packages/{projectName}",
|
|
"currentVersionResolver": "registry",
|
|
"skipLockFileUpdate": true
|
|
},
|
|
"git": {
|
|
"commit": false,
|
|
"stageChanges": false,
|
|
"tag": false
|
|
}
|
|
}
|
|
},
|
|
"targetDefaults": {
|
|
"nx-release-publish": {
|
|
"options": {
|
|
"packageRoot": "build/packages/{projectName}"
|
|
}
|
|
},
|
|
"build": {
|
|
"dependsOn": ["build-base", "build-native"],
|
|
"inputs": ["production", "^production"],
|
|
"cache": true
|
|
},
|
|
"build-native": {
|
|
"inputs": ["native"],
|
|
"cache": true
|
|
},
|
|
"build-base": {
|
|
"dependsOn": ["^build-base", "build-native"],
|
|
"inputs": ["production", "^production"],
|
|
"executor": "@nx/js:tsc",
|
|
"options": {
|
|
"outputPath": "build/{projectRoot}",
|
|
"tsConfig": "{projectRoot}/tsconfig.lib.json",
|
|
"main": "{projectRoot}/index.ts"
|
|
},
|
|
"outputs": ["{options.outputPath}"],
|
|
"cache": true
|
|
},
|
|
"test-native": {
|
|
"inputs": ["native"],
|
|
"executor": "@monodon/rust:test",
|
|
"options": {},
|
|
"cache": true
|
|
},
|
|
"test": {
|
|
"dependsOn": ["test-native", "build-native", "^build-native"],
|
|
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
|
|
"options": {
|
|
"args": ["--passWithNoTests", "--detectOpenHandles", "--forceExit"]
|
|
}
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["build-native", "^build-native"]
|
|
},
|
|
"e2e": {
|
|
"cache": true,
|
|
"inputs": ["e2eInputs", "^production"]
|
|
},
|
|
"e2e-local": {
|
|
"cache": true,
|
|
"inputs": ["e2eInputs", "^production"]
|
|
},
|
|
"e2e-ci": {
|
|
"inputs": ["e2eInputs", "^production"]
|
|
},
|
|
"e2e-macos-ci": {
|
|
"inputs": ["e2eInputs", "^production"]
|
|
},
|
|
"e2e-ci--**/*": {
|
|
"inputs": ["e2eInputs", "^production"],
|
|
"parallelism": false,
|
|
"dependsOn": ["@nx/nx-source:populate-local-registry-storage"]
|
|
},
|
|
"e2e-macos-ci--**/*": {
|
|
"inputs": ["e2eInputs", "^production"],
|
|
"parallelism": false,
|
|
"dependsOn": ["@nx/nx-source:populate-local-registry-storage"]
|
|
},
|
|
"e2e-base": {
|
|
"inputs": ["default", "^production"]
|
|
},
|
|
"build-storybook": {
|
|
"inputs": [
|
|
"default",
|
|
"^production",
|
|
"{workspaceRoot}/.storybook/**/*",
|
|
"{projectRoot}/.storybook/**/*",
|
|
"{projectRoot}/tsconfig.storybook.json"
|
|
],
|
|
"cache": true
|
|
},
|
|
"build-ng": {
|
|
"cache": true
|
|
},
|
|
"sitemap": {
|
|
"cache": true
|
|
},
|
|
"copy-docs": {
|
|
"cache": true
|
|
}
|
|
},
|
|
"plugins": [
|
|
"@monodon/rust",
|
|
{
|
|
"plugin": "@nx/playwright/plugin",
|
|
"options": {
|
|
"targetName": "pw-e2e",
|
|
"ciTargetName": "e2e-ci"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/eslint/plugin",
|
|
"exclude": ["packages/**/__fixtures__/**/*"],
|
|
"options": {
|
|
"targetName": "lint"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/jest/plugin",
|
|
"exclude": [
|
|
"e2e/**/*",
|
|
"packages/**/__fixtures__/**/*",
|
|
"jest.config.ts"
|
|
],
|
|
"options": {
|
|
"targetName": "test"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/webpack/plugin",
|
|
"options": {
|
|
"serveTargetName": "serve-base",
|
|
"buildTargetName": "build-client"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/jest/plugin",
|
|
"include": ["e2e/**/*"],
|
|
"exclude": ["e2e/detox/**/*", "e2e/react-native/**/*", "e2e/expo/**/*"],
|
|
"options": {
|
|
"targetName": "e2e-local",
|
|
"ciTargetName": "e2e-ci"
|
|
}
|
|
},
|
|
{
|
|
"plugin": "@nx/jest/plugin",
|
|
"include": ["e2e/detox/**/*", "e2e/react-native/**/*", "e2e/expo/**/*"],
|
|
"options": {
|
|
"targetName": "e2e-local",
|
|
"ciTargetName": "e2e-macos-ci"
|
|
}
|
|
}
|
|
],
|
|
"nxCloudAccessToken": "YmZiOWQyNzctOThiZC00MjYwLWI3YTAtZDA3MDg4YWY1YTExfHJlYWQ=",
|
|
"nxCloudUrl": "https://staging.nx.app",
|
|
"parallel": 1,
|
|
"cacheDirectory": "/tmp/nx-cache",
|
|
"bust": 8,
|
|
"defaultBase": "master"
|
|
}
|