Skip to content

Commit 3e631da

Browse files
committed
ci: migrate browser tests to GHA
Migrate browser tests to Github Actions (cherry picked from commit b6e8450)
1 parent 2aa6153 commit 3e631da

File tree

3 files changed

+16
-23
lines changed

3 files changed

+16
-23
lines changed

.circleci/config.yml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -186,25 +186,6 @@ jobs:
186186
- run: bazel build --build_tag_filters=-docs-package,-release-package -- src/...
187187
- *slack_notify_on_failure
188188

189-
# ------------------------------------------------------------------------------------------
190-
# Job that runs the unit tests on Bazel-provided browsers (Chrome and Firefox headless).
191-
# ------------------------------------------------------------------------------------------
192-
tests_browsers:
193-
<<: *job_defaults
194-
resource_class: xlarge
195-
environment:
196-
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
197-
steps:
198-
- checkout_and_rebase
199-
- *restore_cache
200-
- *setup_bazel_ci_config
201-
- *setup_bazel_remote_execution
202-
- *yarn_install
203-
- *setup_bazel_binary
204-
205-
- run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
206-
- *slack_notify_on_failure
207-
208189
# -------------------------------------------------------------------------------------------
209190
# Job that builds all release packages. The built packages can be then used in the same
210191
# workflow to publish snapshot builds.
@@ -408,8 +389,6 @@ workflows:
408389
jobs:
409390
- bazel_build:
410391
filters: *ignore_presubmit_branch_filter
411-
- tests_browsers:
412-
filters: *ignore_presubmit_branch_filter
413392
- build_release_packages:
414393
filters: *ignore_presubmit_branch_filter
415394
- upload_release_packages:
@@ -426,7 +405,6 @@ workflows:
426405
filters: *publish_branches_filter
427406
requires:
428407
- build_release_packages
429-
- tests_browsers
430408

431409
# Snapshot tests workflow that is scheduled to run all specified jobs every hour.
432410
# This workflow runs various jobs against the Angular snapshot builds from Github.

.github/angular-robot.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ merge:
5555
# list of PR statuses that need to be successful
5656
requiredStatuses:
5757
- 'ci/circleci: bazel_build'
58-
- 'ci/circleci: tests_browsers'
5958
- 'ci/circleci: build_release_packages'
6059

6160
# the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,19 @@ jobs:
147147
run: yarn install --frozen-lockfile
148148
- name: Run linker JIT tests
149149
run: yarn test-linker-jit
150+
151+
test:
152+
runs-on: ubuntu-latest-16core
153+
steps:
154+
- name: Initialize environment
155+
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
156+
with:
157+
cache-node-modules: true
158+
- name: Setup Bazel
159+
uses: angular/dev-infra/github-actions/bazel/setup@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
160+
- name: Setup Bazel RBE
161+
uses: angular/dev-infra/github-actions/bazel/configure-remote@9931e1a8d1b62fcd2267e89f9993a494856cc1cd
162+
- name: Install node modules
163+
run: yarn install --frozen-lockfile
164+
- name: Run tests
165+
run: bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...

0 commit comments

Comments
 (0)