From 13cc0ff07a9536253efda574a27df0470085f0e5 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Tue, 5 Aug 2025 00:15:26 +0900 Subject: [PATCH 1/4] ci: update GitHub Actions workflow to streamline Nx setup and improve CI run distribution --- .github/workflows/pr.yml | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9367d55996..9271553ac0 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -22,27 +22,14 @@ jobs: uses: actions/checkout@v4.2.2 with: fetch-depth: 0 - - name: Setup pnpm - uses: pnpm/action-setup@v4.1.0 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - cache: pnpm - cache-dependency-path: pnpm-lock.yaml - - name: Install dependencies - run: pnpm --filter "./packages/**" --filter query --prefer-offline install - - name: Get appropriate base and head commits for `nx affected` commands - uses: nrwl/nx-set-shas@v3 - with: - main-branch-name: 'main' - - run: | - echo "BASE: ${{ env.NX_BASE }}" - echo "HEAD: ${{ env.NX_HEAD }}" - - name: Start CI Orchestrator - run: npx nx-cloud start-ci-run + - name: Start Nx Agents + run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" + - name: Setup Tools + uses: tanstack/config/.github/setup@main + - name: Get base and head commits for `nx affected` + uses: nrwl/nx-set-shas@v4.1.2 - name: Run Tests - run: pnpm run test:pr + run: pnpm run test:pr --parallel=3 - name: Stop Agents run: npx nx-cloud stop-all-agents - name: Upload coverage to Codecov From c26cf035bb594616d6e369158398afb3ad329c37 Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Tue, 5 Aug 2025 00:23:49 +0900 Subject: [PATCH 2/4] ci: fix command syntax in GitHub Actions workflow for Nx CI run --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9271553ac0..e9f7e031ff 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,7 +23,7 @@ jobs: with: fetch-depth: 0 - name: Start Nx Agents - run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" + run: npx nx-cloud start-ci-run" - name: Setup Tools uses: tanstack/config/.github/setup@main - name: Get base and head commits for `nx affected` From 7638d6ee39bd81bebdb545b74d4e136bc71868cc Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Tue, 5 Aug 2025 00:25:14 +0900 Subject: [PATCH 3/4] ci: correct command syntax in GitHub Actions workflow for Nx CI run --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e9f7e031ff..6c9aff5020 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -23,7 +23,7 @@ jobs: with: fetch-depth: 0 - name: Start Nx Agents - run: npx nx-cloud start-ci-run" + run: npx nx-cloud start-ci-run - name: Setup Tools uses: tanstack/config/.github/setup@main - name: Get base and head commits for `nx affected` From 0c1fc05926cf14c2e457030d93f4cf3fbee1211a Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Tue, 5 Aug 2025 00:44:41 +0900 Subject: [PATCH 4/4] ci: remove Nx Cloud agent setup from GitHub Actions workflow to simplify CI process --- .github/workflows/pr.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 6c9aff5020..b616085e80 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -34,30 +34,6 @@ jobs: run: npx nx-cloud stop-all-agents - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 - agents: - name: Nx Cloud - Agents - runs-on: ubuntu-latest - timeout-minutes: 10 - strategy: - matrix: - agent: [1, 2, 3] - steps: - - name: Checkout - uses: actions/checkout@v4.2.2 - with: - fetch-depth: 0 - - name: Setup pnpm - uses: pnpm/action-setup@v4.1.0 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc - cache: pnpm - cache-dependency-path: pnpm-lock.yaml - - name: Install dependencies - run: pnpm --filter "./packages/**" --filter query --prefer-offline install - - name: Start Nx Agent ${{ matrix.agent }} - run: npx nx-cloud start-agent format: name: Format runs-on: ubuntu-latest