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