Skip to content

chore: nx cloud

chore: nx cloud #43

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
jobs:
lint-build-test:
name: Nx Cloud - Main Job
permissions:
contents: 'read'
actions: 'read'
uses: ./.github/workflows/nx-main.yml
with:
# NOTE: Here we are using the special `nx-cloud record` command to ensure that any commands we run that do not go through the cloud task runner natively
# (i.e. anything that starts with `nx run`/`nx run-many`/`nx affected --target`), are still captured in the Nx Cloud UI and Github App comment for
# easier troubleshooting. See more here: https://nx.dev/nx-cloud/set-up/record-commands#recording-non-nx-commands
# parallel-commands: |
# npx nx-cloud record -- npx nx format:check
working-directory: "."
pnpm-version: "8.8.0"
parallel-commands-on-agents: |
npx nx affected --target=lint --parallel=3
npx nx affected --target=build --parallel=3
npx nx affected --target=test --parallel=3
agents:
name: Nx Cloud - Agents
uses: ./.github/workflows/nx-agents.yml
with:
working-directory: "."
pnpm-version: "8.8.0"
number-of-agents: 3