Skip to content

Commit 2611bff

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

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.circleci/config.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,24 @@ 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+
<<: *job_defaults
104+
steps:
105+
- *checkout_code
106+
- *restore_cache
107+
108+
- run: bazel test tools/public_api_guard/...
109+
98110
# ----------------------------------------------------------------
99111
# Job that runs the e2e tests with Protractor and Chrome Headless
100112
# ----------------------------------------------------------------
@@ -297,6 +309,7 @@ workflows:
297309
build_and_test:
298310
jobs:
299311
- bazel_build_test
312+
- api_golden_checks
300313

301314
unit_tests:
302315
jobs:

0 commit comments

Comments
 (0)