From ff904771500cce0c9b188102238e5483539d1663 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Tue, 9 Sep 2025 09:16:10 +0000 Subject: [PATCH] ci: separate integration tests to speed up CI (#63640) This commit separates the integration tests into their own CI job. This change aims to speed up the overall CI process by allowing integration tests to run independently. This also aligns the CI configuration with the v19 branch. PR Close #63640 --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .github/workflows/pr.yml | 16 ++++++++++++++++ package.json | 3 ++- 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee7d1f0585a..fc49e719649 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,6 +75,24 @@ jobs: - name: Run CI tests for framework run: yarn test:ci + integration-tests: + runs-on: ubuntu-latest-4core + steps: + - name: Initialize environment + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@1f047e7dbae43ea969c2cafb53b33207e86b800f + with: + cache-node-modules: true + - name: Setup Bazel + uses: angular/dev-infra/github-actions/bazel/setup@1f047e7dbae43ea969c2cafb53b33207e86b800f + - name: Setup Bazel Remote Caching + uses: angular/dev-infra/github-actions/bazel/configure-remote@1f047e7dbae43ea969c2cafb53b33207e86b800f + with: + google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }} + - name: Install node modules + run: yarn install --frozen-lockfile --network-timeout 100000 + - name: Run integration CI tests for framework + run: yarn integration-tests:ci + adev: runs-on: labels: ubuntu-latest-4core diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c6715b6fc51..b92e2609c51 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -77,6 +77,22 @@ jobs: - name: Run CI tests for framework run: yarn test:ci + integration-tests: + runs-on: ubuntu-latest-4core + steps: + - name: Initialize environment + uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@1f047e7dbae43ea969c2cafb53b33207e86b800f + with: + cache-node-modules: true + - name: Setup Bazel + uses: angular/dev-infra/github-actions/bazel/setup@1f047e7dbae43ea969c2cafb53b33207e86b800f + - name: Setup Bazel Remote Caching + uses: angular/dev-infra/github-actions/bazel/configure-remote@1f047e7dbae43ea969c2cafb53b33207e86b800f + - name: Install node modules + run: yarn install --frozen-lockfile --network-timeout 100000 + - name: Run integration CI tests for framework + run: yarn integration-tests:ci + artifacts: needs: [test] if: needs.test.result == 'success' diff --git a/package.json b/package.json index 31809678686..d137c2baaa9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "ng-dev": "tsx --tsconfig .ng-dev/tsconfig.json node_modules/@angular/ng-dev/bundles/cli.mjs", "build": "tsx --tsconfig scripts/tsconfig.json scripts/build/build-packages-dist.mts", "test": "bazelisk test", - "test:ci": "bazelisk test -- //... -//adev/... -//devtools/...", + "test:ci": "bazelisk test -- //... -//integration/... -//adev/... -//devtools/...", + "integration-tests:ci": "bazelisk test -- //integration/...", "test-tsec": "bazelisk test //... --build_tag_filters=tsec --test_tag_filters=tsec", "lint": "yarn -s tslint && yarn -s ng-dev format changed --check", "tslint": "tslint -c tslint.json --project tsconfig-tslint.json",