Skip to content

Commit 89ee125

Browse files
committed
build: run api golden checks in separate ci job
1 parent bc563b7 commit 89ee125

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
@@ -89,12 +89,25 @@ jobs:
8989
- *copy_bazel_config
9090

9191
- run: bazel build src/...
92-
- run: bazel test src/... tools/public_api_guard/...
92+
- run: bazel test src/...
9393

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

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

301315
unit_tests:
302316
jobs:

0 commit comments

Comments
 (0)