Skip to content

Commit

Permalink
docs(nx-cloud): use correct yaml field for job name github
Browse files Browse the repository at this point in the history
  • Loading branch information
lourw committed Jan 6, 2025
1 parent 8f24935 commit aae1cf2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/nx-cloud/features/dynamic-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ By default, when you set up [Nx Agents](/ci/features/distribute-task-execution)
...
jobs:
- job: main
displayName: Main Job
name: Main Job
...
steps:
...
Expand Down Expand Up @@ -68,7 +68,7 @@ You can then reference your distribution configuration in your CI pipeline confi
...
jobs:
- job: main
displayName: Main Job
name: Main Job
...
steps:
...
Expand Down
14 changes: 10 additions & 4 deletions docs/nx-cloud/reference/assignment-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ The following is an example of what this looks like within a github actions pipe
...
jobs:
main:
displayName: Main Job
name: Main Job
...
steps:
...
- run: npx nx-cloud start-ci-run --assignment-rules=.nx/workflows/assignment-rules.yaml --stop-agents-after="e2e-ci"
- ..
medium-agents:
displayName: Agents ${{ matrix.agent }}
name: Agents ${{ matrix.agent }}
runs-on:
group: medium-agents
strategy:
Expand All @@ -121,6 +121,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
...
- name: Start Agent ${{ matrix.agent }}
Expand All @@ -130,7 +133,7 @@ jobs:
NX_AGENT_LAUNCH_TEMPLATE: "linux-medium" # This value needs to match one of the 'runs-on' values defined in the assignment rules
large-agents:
displayName: Agents ${{ matrix.agent }}
name: Agents ${{ matrix.agent }}
runs-on:
group: large-agents
strategy:
Expand All @@ -141,6 +144,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
... # other setup steps
- name: Start Agent ${{ matrix.agent }}
Expand Down Expand Up @@ -183,7 +189,7 @@ You can then reference your distribution configuration in your CI pipeline confi
...
jobs:
- job: main
displayName: Main Job
name: Main Job
...
steps:
...
Expand Down

0 comments on commit aae1cf2

Please sign in to comment.