Skip to content

Commit

Permalink
[core] Use Circle CI context
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 17, 2024
1 parent 41d9029 commit 83db8da
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1

defaults: &defaults
default-job: &default-job
working_directory: /tmp/mui-toolpad
resource_class: medium
docker:
Expand All @@ -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.
Expand Down Expand Up @@ -76,7 +80,7 @@ commands:

jobs:
checkout:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
Expand All @@ -94,7 +98,7 @@ jobs:
fi
test_lint:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
Expand All @@ -108,15 +112,15 @@ jobs:
name: Lint Markdown
command: pnpm markdownlint
test_types:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
- run:
name: Check Typescript types
command: pnpm check-types
test_static:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
Expand All @@ -137,7 +141,7 @@ jobs:
pnpm check-changes
test_unit:
<<: *defaults
<<: *default-job

steps:
- checkout
Expand All @@ -151,7 +155,7 @@ jobs:
command: pnpm test

test_integration:
<<: *defaults
<<: *default-job
resource_class: 'large'
parallelism: 2
docker:
Expand Down Expand Up @@ -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

0 comments on commit 83db8da

Please sign in to comment.