Skip to content

Commit

Permalink
docs(core): add missing docs infomation
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Apr 20, 2022
1 parent 126662d commit 0fdbbb3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 15 deletions.
3 changes: 1 addition & 2 deletions docs/generated/packages/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,7 @@
"ci": {
"type": "string",
"description": "CI provider.",
"$default": { "$source": "argv", "index": 0 },
"default": "github",
"enum": ["github", "circleci", "azure"],
"x-prompt": {
"message": "What is your target CI provider?",
"type": "list",
Expand Down
5 changes: 5 additions & 0 deletions docs/map.json
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@
"id": "workspace-generator",
"path": "/packages/workspace/generators/workspace-generator"
},
{
"name": "ci-workflow generator",
"id": "ci-workflow-generator",
"path": "/packages/workspace/generators/ci-workflow"
},
{
"name": "convert-to-nx-project generator",
"id": "convert-to-nx-project-generator",
Expand Down
17 changes: 11 additions & 6 deletions docs/shared/monorepo-ci-azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ variables:
value: $(git merge-base $(TARGET_BRANCH) HEAD)
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
value: $(git rev-parse HEAD~1)
- name: HEAD_SHA
value: $(git rev-parse HEAD)

jobs:
- job: main
Expand Down Expand Up @@ -88,12 +90,13 @@ variables:
value: $(git merge-base $(TARGET_BRANCH) HEAD)
${{ if ne(variables['Build.Reason'], 'PullRequest') }}:
value: $(git rev-parse HEAD~1)
- name: HEAD_SHA
value: $(git rev-parse HEAD)

jobs:
- job: agents
strategy:
matrix:
agent: [1, 2, 3]
parallel: 3
displayName: 'Agent $(imageName)'
pool:
vmImage: 'ubuntu-latest'
Expand All @@ -109,13 +112,15 @@ jobs:
- script: npx nx-cloud start-ci-run

- script: npx nx workspace-lint
- script: npx nx format:check
- script: npx nx affected --base=$(BASE_SHA) --target=lint --parallel=3
- script: npx nx affected --base=$(BASE_SHA) --target=test --parallel=3 --ci --code-coverage
- script: npx nx affected --base=$(BASE_SHA) --target=build --parallel=3
- script: npx nx format:check --base=$(BASE_SHA) --head=$(HEAD_SHA)
- script: npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) --target=lint --parallel=3
- script: npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) --target=test --parallel=3 --ci --code-coverage
- script: npx nx affected --base=$(BASE_SHA) --head=$(HEAD_SHA) --target=build --parallel=3

- script: npx nx-cloud stop-all-agents
condition: always()
```

You can also use our [ci-workflow generator](https://nx.app/packages/workspace/generators/ci-workflow) to generate the pipeline file.

Learn more about [configuring your CI](https://nx.app/docs/configuring-ci) environment using Nx Cloud with [Distributed Caching](https://nx.app/docs/distributed-caching) and [Distributed Task Execution](https://nx.app/docs/distributed-execution) in the Nx Cloud docs.
2 changes: 2 additions & 0 deletions docs/shared/monorepo-ci-circle-ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,6 @@ workflows:
- main
```

You can also use our [ci-workflow generator](https://nx.app/packages/workspace/generators/ci-workflow) to generate the configuration file.

Learn more about [configuring your CI](https://nx.app/docs/configuring-ci) environment using Nx Cloud with [Distributed Caching](https://nx.app/docs/distributed-caching) and [Distributed Task Execution](https://nx.app/docs/distributed-execution) in the Nx Cloud docs.
2 changes: 2 additions & 0 deletions docs/shared/monorepo-ci-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ jobs:
number-of-agents: 3
```

You can also use our [ci-workflow generator](https://nx.app/packages/workspace/generators/ci-workflow) to generate the workflow file.

Learn more about [configuring your CI](https://nx.app/docs/configuring-ci) environment using Nx Cloud with [Distributed Caching](https://nx.app/docs/distributed-caching) and [Distributed Task Execution](https://nx.app/docs/distributed-execution) in the Nx Cloud docs.
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
displayName: Run build
- script: <%= packageManagerPrefix %> nx-cloud stop-all-agents
condition: always()
displayName: Stop all Nx-Cloud agents
displayName: Stop all Nx-Cloud agents
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ workflows:
parameters:
ordinal: [1, 2, 3]
- main
name: Nx Cloud Main
name: Nx Cloud Main
6 changes: 1 addition & 5 deletions packages/workspace/src/generators/ci-workflow/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
"ci": {
"type": "string",
"description": "CI provider.",
"$default": {
"$source": "argv",
"index": 0
},
"default": "github",
"enum": ["github", "circleci", "azure"],
"x-prompt": {
"message": "What is your target CI provider?",
"type": "list",
Expand Down

0 comments on commit 0fdbbb3

Please sign in to comment.