docs(core): fix grammar in ci guides (#14820)
This commit is contained in:
parent
24861792db
commit
1bf1ad5a8e
@ -1,8 +1,8 @@
|
||||
# Configuring CI Using Azure Pipelines and Nx
|
||||
|
||||
Below is an example of an Azure Pipelines setup for an Nx workspace only building and testing what is affected.
|
||||
Below is an example of an Azure Pipelines setup for an Nx workspace - building and testing only what is affected.
|
||||
|
||||
Unlike `GitHub Actions` and `CircleCI`, you don't have the metadata to help you track the last successful run on `main`. In the example below, the base is set to `HEAD~1` (for push) or branching point (for pull requests), but a more robust solution would be to tag a SHA in the main job once it succeeds, and then use this tag as a base. See the [nx-tag-successful-ci-run](https://github.com/nrwl/nx-tag-successful-ci-run) and [nx-set-shas](https://github.com/nrwl/nx-set-shas) (version 1 implements tagging mechanism) repos for more information.
|
||||
Unlike `GitHub Actions` and `CircleCI`, you don't have the metadata to help you track the last successful run on `main`. In the example below, the base is set to `HEAD~1` (for push) or branching point (for pull requests), but a more robust solution would be to tag an SHA in the main job once it succeeds and then use this tag as a base. See the [nx-tag-successful-ci-run](https://github.com/nrwl/nx-tag-successful-ci-run) and [nx-set-shas](https://github.com/nrwl/nx-set-shas) (version 1 implements tagging mechanism) repositories for more information.
|
||||
|
||||
We also have to set `NX_BRANCH` explicitly.
|
||||
|
||||
@ -44,7 +44,7 @@ The `main` job implements the CI workflow.
|
||||
|
||||
## Distributed CI with Nx Cloud
|
||||
|
||||
In order to use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
To use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
|
||||
Read more about the [Distributed CI setup with Nx Cloud](/recipes/ci/ci-setup#distributed-ci-with-nx-cloud).
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Configuring CI Using Bitbucket Pipelines and Nx
|
||||
|
||||
Below is an example of a Bitbucket Pipeline setup for an Nx workspace only building and testing what is affected.
|
||||
Below is an example of a Bitbucket Pipeline setup for an Nx workspace - building and testing only what is affected.
|
||||
|
||||
```yaml
|
||||
image: node:16
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# Configuring CI Using CircleCI and Nx
|
||||
|
||||
The `CircleCI` can track the last successful run on `main` branch and use this as a reference point for the `BASE`. The `Nx Orb` provides convenient implementation of this functionality which you can drop into you existing CI config.
|
||||
To understand why knowing the last successful build is important for the affected command, check out the [in-depth explanation at Orb's docs](https://github.com/nrwl/nx-orb#background).
|
||||
The `CircleCI` can track the last successful run on the `main` branch and use this as a reference point for the `BASE`. The `Nx Orb` provides a convenient implementation of this functionality which you can drop into your existing CI config.
|
||||
To understand why knowing the last successful build is important for the affected command, check out the [in-depth explanation in Orb's docs](https://github.com/nrwl/nx-orb#background).
|
||||
|
||||
Below is an example of a Circle CI setup for an Nx workspace only building and testing what is affected. For more details on how the orb is used, head over to the [official docs](https://circleci.com/developer/orbs/orb/nrwl/nx).
|
||||
Below is an example of a Circle CI setup for an Nx workspace - building and testing only what is affected. For more details on how the orb is used, head over to the [official docs](https://circleci.com/developer/orbs/orb/nrwl/nx).
|
||||
|
||||
```yaml
|
||||
version: 2.1
|
||||
@ -31,19 +31,19 @@ workflows:
|
||||
|
||||
The `pr` and `main` jobs implement the CI workflow.
|
||||
|
||||
### Using CircleCI on private repository
|
||||
### Using CircleCI on the private repository
|
||||
|
||||
To use the [Nx Orb](https://github.com/nrwl/nx-orb) with a private repository on your main branch, you need to grant the orb access to your CircleCI API. You can do this by creating an environment variable called `CIRCLE_API_TOKEN` in the context or the project.
|
||||
|
||||
{% callout type="warning" title="Caution" %}
|
||||
It should be a user token, not project token.
|
||||
It should be a user token, not the project token.
|
||||
{% /callout %}
|
||||
|
||||
{% nx-cloud-section %}
|
||||
|
||||
## Distributed CI with Nx Cloud
|
||||
|
||||
In order to use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
To use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
|
||||
Read more about the [Distributed CI setup with Nx Cloud](/recipes/ci/ci-setup#distributed-ci-with-nx-cloud).
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
# Configuring CI Using GitHub Actions and Nx
|
||||
|
||||
The `GitHub` can track the last successful run on `main` branch and use this as a reference point for the `BASE`. The `Nx Set SHAs` provides convenient implementation of this functionality which you can drop into you existing CI config.
|
||||
To understand why knowing the last successful build is important for the affected command, check out the [in-depth explanation at Actions's docs](https://github.com/marketplace/actions/nx-set-shas#background).
|
||||
`GitHub` can track the last successful run on the `main` branch and use this as a reference point for the `BASE`. The `Nx Set SHAs` provides a convenient implementation of this functionality which you can drop into your existing CI config.
|
||||
To understand why knowing the last successful build is important for the affected command, check out the [in-depth explanation in Actions's docs](https://github.com/marketplace/actions/nx-set-shas#background).
|
||||
|
||||
Below is an example of a GitHub setup for an Nx workspace only building and testing what is affected. For more details on how the action is used, head over to the [official docs](https://github.com/marketplace/actions/nx-set-shas).
|
||||
Below is an example of a GitHub setup for an Nx workspace - building and testing only what is affected. For more details on how the action is used, head over to the [official docs](https://github.com/marketplace/actions/nx-set-shas).
|
||||
|
||||
```yaml
|
||||
name: CI
|
||||
@ -34,7 +34,7 @@ The `pr` and `main` jobs implement the CI workflow. Setting `timeout-minutes` is
|
||||
|
||||
{% callout type="note" title="Tracking the origin branch" %}
|
||||
|
||||
If you're using this action in the context of a branch you may need to add `run: "git branch --track main origin/main"` before running `nx affected` since `origin/main` won't exist.
|
||||
If you're using this action in the context of a branch you may need to add `run: "git branch --track main origin/main"` before running the `nx affected` command since `origin/main` won't exist.
|
||||
|
||||
{% /callout %}
|
||||
|
||||
@ -42,7 +42,7 @@ If you're using this action in the context of a branch you may need to add `run:
|
||||
|
||||
## Distributed CI with Nx Cloud
|
||||
|
||||
In order to use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
To use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
|
||||
Read more about the [Distributed CI setup with Nx Cloud](/recipes/ci/ci-setup#distributed-ci-with-nx-cloud).
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Configuring CI Using GitLab and Nx
|
||||
|
||||
Below is an example of a GitLab pipeline setup for an Nx workspace only building and testing what is affected.
|
||||
Below is an example of a GitLab pipeline setup for an Nx workspace - building and testing only what is affected.
|
||||
|
||||
```yaml
|
||||
image: node:16
|
||||
@ -59,13 +59,13 @@ build:
|
||||
- npx nx affected --base=$NX_BASE --head=$NX_HEAD --target=build --parallel=3
|
||||
```
|
||||
|
||||
The `build` and `test` jobs implement the CI workflow using `.distributed` as template to keep CI configuration file more readable.
|
||||
The `build` and `test` jobs implement the CI workflow using `.distributed` as a template to keep the CI configuration file more readable.
|
||||
|
||||
{% nx-cloud-section %}
|
||||
|
||||
## Distributed CI with Nx Cloud
|
||||
|
||||
In order to use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
To use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
|
||||
Read more about the [Distributed CI setup with Nx Cloud](/recipes/ci/ci-setup#distributed-ci-with-nx-cloud).
|
||||
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
# Configuring CI Using Jenkins and Nx
|
||||
|
||||
Below is an example of a Jenkins setup for an Nx workspace only building and testing what is affected.
|
||||
Below is an example of a Jenkins setup for an Nx workspace - building and testing only what is affected.
|
||||
|
||||
Unlike `GitHub Actions` and `CircleCI`, you don't have the metadata to help you track the last successful run on `main`. In the example below, the base is set to `HEAD~1` (for push) or branching point (for pull requests), but a more robust solution would be to tag a SHA in the main job once it succeeds, and then use this tag as a base. See the [nx-tag-successful-ci-run](https://github.com/nrwl/nx-tag-successful-ci-run) and [nx-set-shas](https://github.com/nrwl/nx-set-shas) (version 1 implements tagging mechanism) repos for more information.
|
||||
Unlike `GitHub Actions` and `CircleCI`, you don't have the metadata to help you track the last successful run on `main`. In the example below, the base is set to `HEAD~1` (for push) or branching point (for pull requests), but a more robust solution would be to tag an SHA in the main job once it succeeds and then use this tag as a base. See the [nx-tag-successful-ci-run](https://github.com/nrwl/nx-tag-successful-ci-run) and [nx-set-shas](https://github.com/nrwl/nx-set-shas) (version 1 implements tagging mechanism) repositories for more information.
|
||||
|
||||
We also have to set `NX_BRANCH` explicitly.
|
||||
|
||||
@ -55,7 +55,7 @@ The `pr` and `main` jobs implement the CI workflow.
|
||||
|
||||
## Distributed CI with Nx Cloud
|
||||
|
||||
In order to use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
To use distributed task execution, we need to start agents and set the `NX_CLOUD_DISTRIBUTED_EXECUTION` flag to `true`.
|
||||
|
||||
Read more about the [Distributed CI setup with Nx Cloud](/recipes/ci/ci-setup#distributed-ci-with-nx-cloud).
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user