You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let us generate the workflow file for you, if you don't already have one.
26
+
Alternatively you can generate the CI configuration using:
25
27
26
28
```shell
27
29
npx nx g ci-workflow
28
30
```
29
31
30
32
Or, check out our [recipes for the various CI providers](/ci/recipes/set-up).
31
33
32
-
**Step 3: Run your Nx commands as usual**
34
+
## Step 3: Run your Nx commands as usual
33
35
34
36
```yml
35
37
- run: npx nx-cloud record -- node tools/custom-script.js
36
-
- run: npx nx affected -t lint test build
37
-
- run: npx nx affected -t e2e-ci --parallel 1
38
+
- run: npx nx affected -t lint test build e2e-ci
38
39
```
39
40
40
41
All these commands are automatically picked up by Nx Cloud, split up into smaller tasks and distributed across the specified number of machines. Nx Cloud works with Nx tasks automatically, or you can [record non-Nx commands with `nx-cloud record`](/ci/recipes/other/record-commands).
41
42
42
-
**Step 4: All results are played back automatically**
43
+
## Step 4: All results are played back automatically
43
44
44
45
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.
0 commit comments