File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -89,12 +89,24 @@ jobs:
89
89
- *copy_bazel_config
90
90
91
91
- run : bazel build src/...
92
- - run : bazel test src/... tools/public_api_guard/...
92
+ - run : bazel test src/...
93
93
94
94
# Note: We want to save the cache in this job because the workspace cache also
95
95
# includes the Bazel repository cache that will be updated in this job.
96
96
- *save_cache
97
97
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
+
98
110
# ----------------------------------------------------------------
99
111
# Job that runs the e2e tests with Protractor and Chrome Headless
100
112
# ----------------------------------------------------------------
@@ -297,6 +309,7 @@ workflows:
297
309
build_and_test :
298
310
jobs :
299
311
- bazel_build_test
312
+ - api_golden_checks
300
313
301
314
unit_tests :
302
315
jobs :
You can’t perform that action at this time.
0 commit comments