From 7c2bfdebb44596fbd5e872b9742aa50df971abf0 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 11 Dec 2018 23:56:02 +0100 Subject: [PATCH] build: run api golden checks in separate ci job (#14452) --- .circleci/config.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 260788fbf92..f00b0ea884e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,12 +90,25 @@ jobs: - *copy_bazel_config - run: bazel build src/... - - run: bazel test src/... tools/public_api_guard/... + - run: bazel test src/... # Note: We want to save the cache in this job because the workspace cache also # includes the Bazel repository cache that will be updated in this job. - *save_cache + # -------------------------------------------------------------------------------------------- + # Job that runs ts-api-guardian against our API goldens in "tools/public_api_guard". + # This job fails whenever an API has been updated but not explicitly approved through goldens. + # -------------------------------------------------------------------------------------------- + api_golden_checks: + resource_class: xlarge + <<: *job_defaults + steps: + - *checkout_code + - *restore_cache + + - run: bazel test tools/public_api_guard/... + # ---------------------------------------------------------------- # Job that runs the e2e tests with Protractor and Chrome Headless # ---------------------------------------------------------------- @@ -298,6 +311,7 @@ workflows: build_and_test: jobs: - bazel_build_test + - api_golden_checks unit_tests: jobs: