diff --git a/.circleci/config.yml b/.circleci/config.yml index 93338b1dbb4..1996d697355 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 -defaults: &defaults +default-job: &default-job working_directory: /tmp/mui-toolpad resource_class: medium docker: @@ -9,6 +9,10 @@ defaults: &defaults # Keep in sync with "Save playwright cache" PLAYWRIGHT_BROWSERS_PATH: /tmp/pw-browsers +default-context: &default-context + context: + - org-global + # CircleCI has disabled the cache across forks for security reasons. # Following their official statement, it was a quick solution, they # are working on providing this feature back with appropriate security measures. @@ -76,7 +80,7 @@ commands: jobs: checkout: - <<: *defaults + <<: *default-job steps: - checkout - install_js @@ -94,7 +98,7 @@ jobs: fi test_lint: - <<: *defaults + <<: *default-job steps: - checkout - install_js @@ -108,7 +112,7 @@ jobs: name: Lint Markdown command: pnpm markdownlint test_types: - <<: *defaults + <<: *default-job steps: - checkout - install_js @@ -116,7 +120,7 @@ jobs: name: Check Typescript types command: pnpm check-types test_static: - <<: *defaults + <<: *default-job steps: - checkout - install_js @@ -137,7 +141,7 @@ jobs: pnpm check-changes test_unit: - <<: *defaults + <<: *default-job steps: - checkout @@ -151,7 +155,7 @@ jobs: command: pnpm test test_integration: - <<: *defaults + <<: *default-job resource_class: 'large' parallelism: 2 docker: @@ -182,19 +186,25 @@ jobs: workflows: pipeline: jobs: - - checkout + - checkout: + <<: *default-context - test_lint: + <<: *default-context requires: - checkout - test_types: + <<: *default-context requires: - checkout - test_static: + <<: *default-context requires: - checkout - test_unit: + <<: *default-context requires: - checkout - test_integration: + <<: *default-context requires: - checkout