Skip to content

Commit 1a8d685

Browse files
committed
build: run snapshot local browser tests with bazel
Runs the snapshot local browser tests with Bazel. This improves our consistency and allows us to remove `gulp test` in the future.
1 parent 258ca59 commit 1a8d685

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

.circleci/config.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,19 +388,19 @@ jobs:
388388
snapshot_tests_local_browsers:
389389
docker: *docker-firefox-image
390390
resource_class: xlarge
391+
environment:
392+
GCP_DECRYPT_TOKEN: *gcp_decrypt_token
391393
steps:
392394
- *checkout_code
393395
- *restore_cache
396+
- *setup_bazel_ci_config
397+
- *setup_bazel_remote_execution
394398
- *yarn_download
395399
- *yarn_install
400+
- *setup_bazel_binary
396401

397402
- run: node ./scripts/circleci/setup-angular-snapshots.js --tag master
398-
# We need to re-run yarn install in order to pull the Angular snapshot builds. Note
399-
# that we can't use the "--frozen-lockfile" option since the setup snapshots script does
400-
# not update the lock file.
401-
- run: yarn install --non-interactive
402-
- run: ./scripts/circleci/run-local-browser-tests.sh
403-
403+
- run: bazel test src/... --build_tag_filters=-e2e --test_tag_filters=-e2e
404404

405405
# ----------------------------------------------------------------------------
406406
# Job that runs all Bazel tests against Ivy with the current Angular version
@@ -521,6 +521,7 @@ workflows:
521521

522522
bazel_targets:
523523
jobs:
524+
- snapshot_tests_local_browsers
524525
- bazel_build:
525526
filters: *ignore_presubmit_branch_filter
526527
- ivy_test:

scripts/circleci/run-local-browser-tests.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)