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 dc520f0 commit 02a0951
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ parameters:
type: string
default: pipeline

defaults: &defaults
default-job: &default-job
working_directory: /tmp/mui
docker:
- image: cimg/node:18.16

default-context: &default-context
context:
- org-global

commands:
install_js:
steps:
Expand Down Expand Up @@ -44,7 +48,7 @@ commands:

jobs:
checkout:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
Expand All @@ -55,15 +59,15 @@ jobs:
name: Check for duplicated packages
command: yarn deduplicate
test_lint:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
- run:
name: Eslint
command: yarn eslint:ci
test_static:
<<: *defaults
<<: *default-job
steps:
- checkout
- install_js
Expand All @@ -76,10 +80,13 @@ workflows:
when:
equal: [pipeline, << pipeline.parameters.workflow >>]
jobs:
- checkout
- checkout:
<<: *default-context
- test_lint:
<<: *default-context
requires:
- checkout
- test_static:
<<: *default-context
requires:
- checkout

0 comments on commit 02a0951

Please sign in to comment.