Skip to content

Commit

Permalink
Revert "[core] Use Circle CI context"
Browse files Browse the repository at this point in the history
This reverts commit 6ac90c5.
  • Loading branch information
atomiks committed Mar 20, 2024
1 parent f977c12 commit 9b1b91a
Showing 1 changed file with 15 additions and 35 deletions.
50 changes: 15 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ parameters:
type: string
default: ''

default-job: &default-job
defaults: &defaults
parameters:
react-version:
description: The version of react to be used
Expand All @@ -47,10 +47,6 @@ default-job: &default-job
docker:
- image: cimg/node:18.19

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.
Expand Down Expand Up @@ -117,7 +113,7 @@ commands:

jobs:
checkout:
<<: *default-job
<<: *defaults
steps:
- checkout
- install_js
Expand All @@ -139,7 +135,7 @@ jobs:
pnpm dedupe --check
fi
test_unit:
<<: *default-job
<<: *defaults
steps:
- checkout
- install_js
Expand All @@ -160,7 +156,7 @@ jobs:
chmod +x codecov
./codecov -t ${CODECOV_TOKEN} -Z -F "$REACT_VERSION-jsdom"
test_lint:
<<: *default-job
<<: *defaults
steps:
- checkout
- install_js
Expand All @@ -177,7 +173,7 @@ jobs:
name: Lint Markdown
command: pnpm markdownlint
test_static:
<<: *default-job
<<: *defaults
steps:
- checkout
- install_js
Expand Down Expand Up @@ -213,7 +209,7 @@ jobs:
pnpm docs:link-check
git add -A && git diff --exit-code --staged
test_types:
<<: *default-job
<<: *defaults
resource_class: 'medium+'
steps:
- checkout
Expand All @@ -239,7 +235,7 @@ jobs:
# packages with generated declaration files
- packages/mui-base/build
test_types_next:
<<: *default-job
<<: *defaults
resource_class: 'medium+'
steps:
- checkout
Expand Down Expand Up @@ -284,7 +280,7 @@ jobs:
node scripts/testBuiltTypes.mjs
exit 0
test_browser:
<<: *default-job
<<: *defaults
resource_class: 'medium+'
docker:
- image: mcr.microsoft.com/playwright:v1.42.1-focal
Expand Down Expand Up @@ -315,7 +311,7 @@ jobs:
path: /tmp/_karma_webpack_
destination: artifact-file
test_profile:
<<: *default-job
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.42.1-focal
environment:
Expand All @@ -342,7 +338,7 @@ jobs:
path: tmp/react-profiler-report/karma
destination: react-profiler-report/karma
test_regressions:
<<: *default-job
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.42.1-focal
environment:
Expand All @@ -358,7 +354,7 @@ jobs:
name: Upload screenshots to Argos CI
command: pnpm test:argos
test_benchmark:
<<: *default-job
<<: *defaults
docker:
- image: mcr.microsoft.com/playwright:v1.42.1-focal
environment:
Expand All @@ -378,39 +374,31 @@ workflows:
when:
equal: [pipeline, << pipeline.parameters.workflow >>]
jobs:
- checkout:
<<: *default-context
- checkout
- test_unit:
<<: *default-context
requires:
- checkout
- test_lint:
<<: *default-context
requires:
- checkout
- test_static:
<<: *default-context
requires:
- checkout
- test_types:
<<: *default-context
requires:
- checkout
- test_browser:
<<: *default-context
requires:
- checkout
- test_regressions:
<<: *default-context
requires:
- checkout

profile:
when:
equal: [profile, << pipeline.parameters.workflow >>]
jobs:
- test_profile:
<<: *default-context
- test_profile
react-17:
triggers:
- schedule:
Expand All @@ -421,13 +409,10 @@ workflows:
- master
jobs:
- test_unit:
<<: *default-context
react-version: ^17.0.0
- test_browser:
<<: *default-context
react-version: ^17.0.0
- test_regressions:
<<: *default-context
react-version: ^17.0.0
react-next:
triggers:
Expand All @@ -439,13 +424,10 @@ workflows:
- master
jobs:
- test_unit:
<<: *default-context
react-version: next
- test_browser:
<<: *default-context
react-version: next
- test_regressions:
<<: *default-context
react-version: next
typescript-next:
triggers:
Expand All @@ -456,11 +438,9 @@ workflows:
only:
- master
jobs:
- test_types_next:
<<: *default-context
- test_types_next
benchmark:
when:
equal: [benchmark, << pipeline.parameters.workflow >>]
jobs:
- test_benchmark:
<<: *default-context
- test_benchmark

0 comments on commit 9b1b91a

Please sign in to comment.