-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): attempt to add CI pipeline with Nx Cloud
- Loading branch information
Showing
4 changed files
with
166 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 | ||
with: | ||
main-branch-name: main | ||
number-of-agents: 3 | ||
init-commands: | | ||
pnpm exec nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3 | ||
parallel-commands: | | ||
pnpm exec nx-cloud record -- pnpm exec nx format:check | ||
parallel-commands-on-agents: | | ||
pnpm exec nx affected --target=lint --parallel=3 | ||
pnpm exec nx affected --target=test --parallel=3 --ci --code-coverage | ||
pnpm exec nx affected --target=e2e --parallel=3 --ci | ||
pnpm exec nx affected --target=build --parallel=3 | ||
agents: | ||
name: Nx Cloud - Agents | ||
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 | ||
with: | ||
number-of-agents: 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,81 @@ | ||
{ | ||
"$schema": "./node_modules/nx/schemas/nx-schema.json", | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx/tasks-runners/default", | ||
"options": { | ||
"cacheableOperations": ["build", "lint", "test", "e2e"] | ||
} | ||
} | ||
}, | ||
"workspaceLayout": { | ||
"projectNameAndRootFormat": "as-provided" | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": ["^build"], | ||
"inputs": ["production", "^production"] | ||
}, | ||
"test": { | ||
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"] | ||
}, | ||
"lint": { | ||
"inputs": [ | ||
"default", | ||
"{workspaceRoot}/.eslintrc.json", | ||
"{workspaceRoot}/.eslintignore", | ||
"{workspaceRoot}/eslint.config.js" | ||
] | ||
} | ||
}, | ||
"namedInputs": { | ||
"default": ["{projectRoot}/**/*", "sharedGlobals"], | ||
"production": [ | ||
"default", | ||
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", | ||
"!{projectRoot}/tsconfig.spec.json", | ||
"!{projectRoot}/jest.config.[jt]s", | ||
"!{projectRoot}/src/test-setup.[jt]s", | ||
"!{projectRoot}/test-setup.[jt]s", | ||
"!{projectRoot}/.eslintrc.json", | ||
"!{projectRoot}/eslint.config.js" | ||
], | ||
"sharedGlobals": [] | ||
}, | ||
"generators": { | ||
"@nx/angular:application": { | ||
"style": "css", | ||
"linter": "eslint", | ||
"unitTestRunner": "jest", | ||
"e2eTestRunner": "none" | ||
}, | ||
"@nx/angular:library": { | ||
"linter": "eslint", | ||
"unitTestRunner": "jest" | ||
}, | ||
"@nx/angular:component": { | ||
"style": "css" | ||
}, | ||
"@nx/workspace:move": { | ||
"projectNameAndRootFormat": "as-provided" | ||
} | ||
} | ||
"$schema": "./node_modules/nx/schemas/nx-schema.json", | ||
"tasksRunnerOptions": { | ||
"default": { | ||
"runner": "nx-cloud", | ||
"options": { | ||
"cacheableOperations": [ | ||
"build", | ||
"lint", | ||
"test", | ||
"e2e" | ||
], | ||
"accessToken": "ZjZjZjhkOGUtNWQ5MS00NGM0LThmMDQtNDNlNzhkYjJjMmZmfHJlYWQtd3JpdGU=" | ||
} | ||
} | ||
}, | ||
"workspaceLayout": { | ||
"projectNameAndRootFormat": "as-provided" | ||
}, | ||
"targetDefaults": { | ||
"build": { | ||
"dependsOn": [ | ||
"^build" | ||
], | ||
"inputs": [ | ||
"production", | ||
"^production" | ||
] | ||
}, | ||
"test": { | ||
"inputs": [ | ||
"default", | ||
"^production", | ||
"{workspaceRoot}/jest.preset.js" | ||
] | ||
}, | ||
"lint": { | ||
"inputs": [ | ||
"default", | ||
"{workspaceRoot}/.eslintrc.json", | ||
"{workspaceRoot}/.eslintignore", | ||
"{workspaceRoot}/eslint.config.js" | ||
] | ||
} | ||
}, | ||
"namedInputs": { | ||
"default": [ | ||
"{projectRoot}/**/*", | ||
"sharedGlobals" | ||
], | ||
"production": [ | ||
"default", | ||
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)", | ||
"!{projectRoot}/tsconfig.spec.json", | ||
"!{projectRoot}/jest.config.[jt]s", | ||
"!{projectRoot}/src/test-setup.[jt]s", | ||
"!{projectRoot}/test-setup.[jt]s", | ||
"!{projectRoot}/.eslintrc.json", | ||
"!{projectRoot}/eslint.config.js" | ||
], | ||
"sharedGlobals": [] | ||
}, | ||
"generators": { | ||
"@nx/angular:application": { | ||
"style": "css", | ||
"linter": "eslint", | ||
"unitTestRunner": "jest", | ||
"e2eTestRunner": "none" | ||
}, | ||
"@nx/angular:library": { | ||
"linter": "eslint", | ||
"unitTestRunner": "jest" | ||
}, | ||
"@nx/angular:component": { | ||
"style": "css" | ||
}, | ||
"@nx/workspace:move": { | ||
"projectNameAndRootFormat": "as-provided" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.