Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Sep 11, 2024
1 parent 3e2d8b9 commit dc53655
Showing 1 changed file with 16 additions and 232 deletions.
248 changes: 16 additions & 232 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -498,214 +498,29 @@ jobs:
- run:
name: Upload screenshots to Argos CI
command: pnpm test:argos
test_bundling_prepare:
test_bundling:
<<: *default-job
steps:
- checkout
- run:
name: Enable bundling workspaces
command: sed -i "" 's/# CI:BUNDLING //g' ./pnpm-workspace.yaml
- install_js
- run:
name: Build packages for fixtures
command: pnpm lerna run --scope "@mui/*" build
- persist_to_workspace:
root: packages
paths:
- '*/build'

test_bundling_node-esm:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/node-esm/
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture node-esm
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: |
# TODO: Known failure
set +e
pnpm start
exit 0
test_bundling_next-webpack4:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack4/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture next-webpack4
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: pnpm start
test_bundling_next-webpack5:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/next-webpack5/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture next-webpack5
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: pnpm start
test_bundling_create-react-app:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/create-react-app/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture create-react-app
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: pnpm start
test_bundling_snowpack:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/snowpack/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture snowpack
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: pnpm start
test_bundling_vite:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/vite/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture vite
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: pnpm start
test_bundling_esbuild:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/esbuild/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
command: |
node ../../scripts/createFixture esbuild
- run:
name: Install dependencies
command: |
pnpm
node ../../scripts/useBuildFromSource.js .
- run:
name: Test fixture
command: |
# TODO: Known failure
set +e
pnpm start
exit 0
test_bundling_gatsby:
<<: *default-job
working_directory: /tmp/material-ui/test/bundling/fixtures/gatsby/
docker:
- image: mcr.microsoft.com/playwright:v1.46.1-focal
environment:
NODE_ENV: development # Needed if playwright is in `devDependencies`
steps:
- checkout:
path: /tmp/material-ui
- attach_workspace:
at: /tmp/material-ui/packages
- run:
name: Prepare fixture
name: Run tests
command: |
node ../../scripts/useBuildFromSource.js .
node ../../scripts/createFixture gatsby
- run:
name: Install dependencies
command: pnpm
- run:
name: Test fixture
command: pnpm start
pnpm --filter create-react-app start
pnpm --filter esbuild start
pnpm --filter gatsby start
pnpm --filter next-webpack4 start
pnpm --filter next-webpack5 start
pnpm --filter node-esm start
pnpm --filter snowpack start
pnpm --filter vite start
test_bundle_size_monitor:
<<: *default-job
steps:
Expand Down Expand Up @@ -855,40 +670,9 @@ workflows:
when:
equal: [bundling, << pipeline.parameters.workflow >>]
jobs:
- test_bundling_prepare:
<<: *default-context
- test_bundling_node-esm:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_next-webpack4:
- test_bundling:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_next-webpack5:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_create-react-app:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_snowpack:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_vite:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_esbuild:
<<: *default-context
requires:
- test_bundling_prepare
- test_bundling_gatsby:
<<: *default-context
requires:
- test_bundling_prepare

profile:
when:
equal: [profile, << pipeline.parameters.workflow >>]
Expand Down

0 comments on commit dc53655

Please sign in to comment.