Skip to content

Commit ff90477

Browse files
alan-agius4atscott
authored andcommitted
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
1 parent 8a6e124 commit ff90477

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@ jobs:
7575
- name: Run CI tests for framework
7676
run: yarn test:ci
7777

78+
integration-tests:
79+
runs-on: ubuntu-latest-4core
80+
steps:
81+
- name: Initialize environment
82+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@1f047e7dbae43ea969c2cafb53b33207e86b800f
83+
with:
84+
cache-node-modules: true
85+
- name: Setup Bazel
86+
uses: angular/dev-infra/github-actions/bazel/setup@1f047e7dbae43ea969c2cafb53b33207e86b800f
87+
- name: Setup Bazel Remote Caching
88+
uses: angular/dev-infra/github-actions/bazel/configure-remote@1f047e7dbae43ea969c2cafb53b33207e86b800f
89+
with:
90+
google_credential: ${{ secrets.RBE_TRUSTED_BUILDS_USER }}
91+
- name: Install node modules
92+
run: yarn install --frozen-lockfile --network-timeout 100000
93+
- name: Run integration CI tests for framework
94+
run: yarn integration-tests:ci
95+
7896
adev:
7997
runs-on:
8098
labels: ubuntu-latest-4core

.github/workflows/pr.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,22 @@ jobs:
7777
- name: Run CI tests for framework
7878
run: yarn test:ci
7979

80+
integration-tests:
81+
runs-on: ubuntu-latest-4core
82+
steps:
83+
- name: Initialize environment
84+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@1f047e7dbae43ea969c2cafb53b33207e86b800f
85+
with:
86+
cache-node-modules: true
87+
- name: Setup Bazel
88+
uses: angular/dev-infra/github-actions/bazel/setup@1f047e7dbae43ea969c2cafb53b33207e86b800f
89+
- name: Setup Bazel Remote Caching
90+
uses: angular/dev-infra/github-actions/bazel/configure-remote@1f047e7dbae43ea969c2cafb53b33207e86b800f
91+
- name: Install node modules
92+
run: yarn install --frozen-lockfile --network-timeout 100000
93+
- name: Run integration CI tests for framework
94+
run: yarn integration-tests:ci
95+
8096
artifacts:
8197
needs: [test]
8298
if: needs.test.result == 'success'

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"ng-dev": "tsx --tsconfig .ng-dev/tsconfig.json node_modules/@angular/ng-dev/bundles/cli.mjs",
2727
"build": "tsx --tsconfig scripts/tsconfig.json scripts/build/build-packages-dist.mts",
2828
"test": "bazelisk test",
29-
"test:ci": "bazelisk test -- //... -//adev/... -//devtools/...",
29+
"test:ci": "bazelisk test -- //... -//integration/... -//adev/... -//devtools/...",
30+
"integration-tests:ci": "bazelisk test -- //integration/...",
3031
"test-tsec": "bazelisk test //... --build_tag_filters=tsec --test_tag_filters=tsec",
3132
"lint": "yarn -s tslint && yarn -s ng-dev format changed --check",
3233
"tslint": "tslint -c tslint.json --project tsconfig-tslint.json",

0 commit comments

Comments
 (0)