diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 8bc44564..81491048 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -9,7 +9,13 @@ env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: - release: + agents: + name: Nx Cloud - Agents + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 + with: + number-of-agents: 3 + + pull: runs-on: ubuntu-22.04 strategy: matrix: @@ -21,9 +27,6 @@ jobs: with: fetch-depth: 0 - - name: NX Affected - uses: nrwl/nx-set-shas@v4 - - name: Install Node.js uses: actions/setup-node@v4 with: @@ -53,14 +56,12 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci - - name: Build - run: pnpm build:ci - - - name: Lint Monorepo - run: pnpm lint:mr - - - name: Lint - run: pnpm lint:ci + - name: NX Affected + uses: nrwl/nx-set-shas@v4 - - name: Test - run: pnpm test:ci + - name: Build, Lint, Test using Distributed Task Execution + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 + with: + number-of-agents: 3 + parallel-commands-on-agents: | + npx nx affected -t build,lint,test --parallel=3 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 102ba56b..bc53b99b 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,7 +10,13 @@ env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} jobs: - release: + agents: + name: Nx Cloud - Agents + uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.13.0 + with: + number-of-agents: 3 + + push: runs-on: ubuntu-22.04 strategy: matrix: @@ -22,9 +28,6 @@ jobs: with: fetch-depth: 0 - - name: NX Affected - uses: nrwl/nx-set-shas@v4 - - name: Install Node.js uses: actions/setup-node@v4 with: @@ -54,17 +57,15 @@ jobs: - name: Install dependencies run: pnpm bootstrap:ci - - name: Build - run: pnpm build:ci - - - name: Lint Monorepo - run: pnpm lint:mr - - - name: Lint - run: pnpm lint:ci + - name: NX Affected + uses: nrwl/nx-set-shas@v4 - - name: Test - run: pnpm test:ci + - name: Build, Lint, Test using Distributed Task Execution + uses: nrwl/ci/.github/workflows/nx-cloud-main.yml@v0.13.0 + with: + number-of-agents: 3 + parallel-commands-on-agents: | + npx nx affected -t build,lint,test --parallel=3 - name: Config Git User run: |