Skip to content

Merge pull request #3704 from kishanprmr/cli/create-trigger #2

Merge pull request #3704 from kishanprmr/cli/create-trigger

Merge pull request #3704 from kishanprmr/cli/create-trigger #2

name: build-cloud-nx
on:
push:
branches:
- main
pull_request:
jobs:
main:
name: Nx Cloud - Main Job
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3
init-commands: |
npx nx-cloud start-ci-run --stop-agents-after="build" --agent-count=3
parallel-commands-on-agents: |
npx nx affected --target=lint --parallel=3
npx nx affected --target=build -c production --parallel=3
npx nx run-many --target=test --projects=engine,shared,backend --parallel=3
agents:
name: Nx Cloud - Agents
secrets:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
uses: nrwl/ci/.github/workflows/[email protected]
with:
number-of-agents: 3