Skip to content

Commit 7c2bfde

Browse files
devversionvivian-hu-zz
authored andcommitted
build: run api golden checks in separate ci job (#14452)
1 parent 399019b commit 7c2bfde

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.circleci/config.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,25 @@ jobs:
9090
- *copy_bazel_config
9191

9292
- run: bazel build src/...
93-
- run: bazel test src/... tools/public_api_guard/...
93+
- run: bazel test src/...
9494

9595
# Note: We want to save the cache in this job because the workspace cache also
9696
# includes the Bazel repository cache that will be updated in this job.
9797
- *save_cache
9898

99+
# --------------------------------------------------------------------------------------------
100+
# Job that runs ts-api-guardian against our API goldens in "tools/public_api_guard".
101+
# This job fails whenever an API has been updated but not explicitly approved through goldens.
102+
# --------------------------------------------------------------------------------------------
103+
api_golden_checks:
104+
resource_class: xlarge
105+
<<: *job_defaults
106+
steps:
107+
- *checkout_code
108+
- *restore_cache
109+
110+
- run: bazel test tools/public_api_guard/...
111+
99112
# ----------------------------------------------------------------
100113
# Job that runs the e2e tests with Protractor and Chrome Headless
101114
# ----------------------------------------------------------------
@@ -298,6 +311,7 @@ workflows:
298311
build_and_test:
299312
jobs:
300313
- bazel_build_test
314+
- api_golden_checks
301315

302316
unit_tests:
303317
jobs:

0 commit comments

Comments
 (0)