Skip to content

Commit 581074e

Browse files
Merge branch 'next' into fix-hint-autocomplete
2 parents 3c51e2a + 288863b commit 581074e

File tree

4 files changed

+98
-1
lines changed

4 files changed

+98
-1
lines changed

.circleci/config.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,48 +888,106 @@ workflows:
888888
jobs:
889889
- test_profile:
890890
<<: *default-context
891+
892+
# This workflow can be triggered manually on the PR
891893
react-17:
894+
when:
895+
equal: [react-17, << pipeline.parameters.workflow >>]
896+
jobs:
897+
- test_unit:
898+
<<: *default-context
899+
react-version: ^17.0.0
900+
name: test_unit-react@17
901+
- test_browser:
902+
<<: *default-context
903+
react-version: ^17.0.0
904+
name: test_browser-react@17
905+
- test_regressions:
906+
<<: *default-context
907+
react-version: ^17.0.0
908+
name: test_regressions-react@17
909+
- test_e2e:
910+
<<: *default-context
911+
react-version: ^17.0.0
912+
name: test_e2e-react@17
913+
914+
# This workflow is identical to react-17, but scheduled
915+
react-17-cron:
892916
triggers:
893917
- schedule:
894918
cron: '0 0 * * *'
895919
filters:
896920
branches:
897921
only:
898922
- master
923+
- next
899924
jobs:
900925
- test_unit:
901926
<<: *default-context
902927
react-version: ^17.0.0
928+
name: test_unit-react@17
903929
- test_browser:
904930
<<: *default-context
905931
react-version: ^17.0.0
932+
name: test_browser-react@17
906933
- test_regressions:
907934
<<: *default-context
908935
react-version: ^17.0.0
936+
name: test_regressions-react@17
909937
- test_e2e:
910938
<<: *default-context
911939
react-version: ^17.0.0
940+
name: test_e2e-react@17
941+
942+
# This workflow can be triggered manually on the PR
912943
react-next:
944+
when:
945+
equal: [react-next, << pipeline.parameters.workflow >>]
946+
jobs:
947+
- test_unit:
948+
<<: *default-context
949+
react-version: next
950+
name: test_unit-react@next
951+
- test_browser:
952+
<<: *default-context
953+
react-version: next
954+
name: test_browser-react@next
955+
- test_regressions:
956+
<<: *default-context
957+
react-version: next
958+
name: test_regressions-react@next
959+
- test_e2e:
960+
<<: *default-context
961+
react-version: next
962+
name: test_e2e-react@next
963+
# This workflow is identical to react-next, but scheduled
964+
react-next-cron:
913965
triggers:
914966
- schedule:
915967
cron: '0 0 * * *'
916968
filters:
917969
branches:
918970
only:
919971
- master
972+
- next
920973
jobs:
921974
- test_unit:
922975
<<: *default-context
923976
react-version: next
977+
name: test_unit-react@next
924978
- test_browser:
925979
<<: *default-context
926980
react-version: next
981+
name: test_browser-react@next
927982
- test_regressions:
928983
<<: *default-context
929984
react-version: next
985+
name: test_regressions-react@next
930986
- test_e2e:
931987
<<: *default-context
932988
react-version: next
989+
name: test_e2e-react@next
990+
933991
typescript-next:
934992
triggers:
935993
- schedule:
@@ -938,6 +996,7 @@ workflows:
938996
branches:
939997
only:
940998
- master
999+
- next
9411000
jobs:
9421001
- test_types_next:
9431002
<<: *default-context

packages/mui-envinfo/envinfo.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ envinfo
88
npmPackages: `{${[
99
'@mui/*',
1010
'@toolpad/*',
11+
'@pigment-css/*',
12+
'@base_ui/*',
1113
// Peer dependencies
1214
'react',
1315
'react-dom',

scripts/useReactVersion.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,17 @@ async function main(version) {
9696

9797
// add newline for clean diff
9898
fs.writeFileSync(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}${os.EOL}`);
99+
100+
console.log('Installing dependencies...');
101+
const pnpmInstall = childProcess.spawn('pnpm', ['install', '--no-frozen-lockfile'], {
102+
shell: true,
103+
stdio: ['inherit', 'inherit', 'inherit'],
104+
});
105+
pnpmInstall.on('exit', (exitCode) => {
106+
if (exitCode !== 0) {
107+
throw new Error('Failed to install dependencies');
108+
}
109+
});
99110
}
100111

101112
const [version = process.env.REACT_VERSION] = process.argv.slice(2);

test/README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,11 @@ For example, in https://app.circleci.com/pipelines/github/mui/material-ui/32796/
244244

245245
### Testing multiple versions of React
246246

247-
You can check integration of different versions of React (for example different [release channels](https://react.dev/community/versioning-policy) or PRs to React) by running `pnpm use-react-version <version>`.
247+
You can check integration of different versions of React (for example different [release channels](https://react.dev/community/versioning-policy) or PRs to React) by running:
248+
249+
```bash
250+
pnpm use-react-version <version>
251+
```
248252

249253
Possible values for `version`:
250254

@@ -254,6 +258,27 @@ Possible values for `version`:
254258

255259
#### CI
256260

261+
##### Circle CI web interface
262+
263+
There are two workflows that can be triggered for any given PR manually in the CircleCI web interface:
264+
265+
- `react-next`
266+
- `react-17`
267+
268+
Follow these steps:
269+
270+
1. Go to https://app.circleci.com/pipelines/github/mui/material-ui?branch=pull/PR_NUMBER/head and replace `PR_NUMBER` with the PR number you want to test.
271+
2. Click `Trigger Pipeline` button.
272+
3. Expand `Add parameters (optional)` and add the following parameter:
273+
274+
| Parameter type | Name | Value |
275+
| :------------- | :--------- | :------------------------- |
276+
| `string` | `workflow` | `react-next` or `react-17` |
277+
278+
4. Click `Trigger Pipeline` button.
279+
280+
##### API request
281+
257282
You can pass the same `version` to our CircleCI pipeline as well:
258283

259284
With the following API request we're triggering a run of the default workflow in

0 commit comments

Comments
 (0)