chore: nx cloud #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
working-directory: "." | |
pnpm-version: "8.8.0" | |
parallel-commands-on-agents: | | |
npx nx-cloud record -- npx nx affected --target=lint --parallel=3 | |
npx nx-cloud record -- npx nx affected --target=build --parallel=3 | |
npx nx-cloud record -- 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 |