diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6284ff6..9038eba 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -13,6 +13,7 @@ concurrency: env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} + NX_CLOUD_CONTINUOUS_ASSIGNMENT: true permissions: contents: read @@ -34,8 +35,13 @@ jobs: uses: nrwl/nx-set-shas@3e9ad7370203c1e93d109be57f3b72eb0eb511b1 # v4.4.0 with: main-branch-name: main + - name: Start Nx Agents + run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" --require-explicit-completion - name: Run Checks run: pnpm run test:pr + - name: Complete Nx Agents + if: ${{ always() }} + run: npx nx-cloud complete-ci-run preview: name: Preview runs-on: ubuntu-latest diff --git a/nx.json b/nx.json index 0e6a187..37d98d8 100644 --- a/nx.json +++ b/nx.json @@ -1,4 +1,5 @@ { + "buest": "agent-test-1", "$schema": "./node_modules/nx/schemas/nx-schema.json", "defaultBase": "main", "nxCloudId": "69c71b9038eed5e74d5da8e4",