-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(nx-cloud): update onboarding flow to use "nx connect" (#26842)
The new Nx Cloud onboarding flow is to run `nx connect` and follow the prompts. There's no need to explain beyond that in the docs since the flow is prone to changes in nx.app. (cherry picked from commit 2baf672)
- Loading branch information
1 parent
8947560
commit c8c4295
Showing
10 changed files
with
96 additions
and
129 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
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
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
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
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,44 @@ | ||
# Connect to Nx Cloud | ||
|
||
Nx Cloud directly integrates with your existing CI setup. | ||
|
||
![Nx Cloud Overview](/shared/images/nx-cloud/nx-cloud-overview.webp) | ||
|
||
In a nutshell, here's how this works: | ||
|
||
**Step 1: Connect your workspace to Nx Cloud** | ||
|
||
This can be done by signing up on [nx.app](https://nx.app) and then connecting to your git repository. | ||
|
||
```shell | ||
npx nx connect | ||
``` | ||
|
||
**Step 2: Your CI script triggers Nx Cloud** | ||
|
||
```yml | ||
- name: Start CI run | ||
run: 'npx nx-cloud start-ci-run --distribute-on="8 linux-medium-js"' | ||
``` | ||
Let us generate the workflow file for you, if you don't already have one. | ||
```shell | ||
npx nx g ci-workflow | ||
``` | ||
|
||
Or, check out our [recipes for the various CI providers](/ci/recipes/set-up). | ||
|
||
**Step 3: Run your Nx commands as usual** | ||
|
||
```yml | ||
- run: npx nx-cloud record -- nx format:check | ||
- run: npx nx affected -t lint test build | ||
- run: npx nx affected -t e2e-ci --parallel 1 | ||
``` | ||
All these commands are automatically picked up by Nx Cloud, split up into smaller tasks and distributed across the specified number of machines. | ||
**Step 4: All results are played back automatically** | ||
Nx Cloud automatically plays back all results to your CI system, as if distribution never happened. You can continue doing post-processing on the results, like uploading test reports, deploying artifacts etc. |
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
This file was deleted.
Oops, something went wrong.
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
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
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