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",