Skip to content

fix(deps): update material-ui monorepo #3726

fix(deps): update material-ui monorepo

fix(deps): update material-ui monorepo #3726

Workflow file for this run

name: CI
on:
push:
branches:
- main
- beta
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
merge_group:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
STORYBOOK_DISABLE_TELEMETRY: 1
jobs:
setup:
runs-on: ubuntu-latest
outputs:
examples-matrix: ${{ steps.examples-matrix.outputs.examples-matrix }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Calculate `examples-matrix` output
id: examples-matrix
working-directory: ./examples
env:
JQ_FILTER: >-
"examples-matrix=" + (split("\n") | map(select(length > 0)) | tostring)
run: find . -type f -name 'yarn.lock' -printf '%h\n' | cut -c 3- | sort -u | jq -cRrs '${{ env.JQ_FILTER }}' >> "$GITHUB_OUTPUT"
build-pangea-node-sdk:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/pangea-node-sdk
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Pack
run: yarn pack
- name: Upload
uses: actions/[email protected]
with:
name: pangea-node-sdk-package
path: ./packages/pangea-node-sdk/package.tgz
build-react-auth:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/react-auth
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/react-auth/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Type check
run: yarn typecheck
- name: Are the types wrong?
run: yarn lint-attw
- name: publint
run: yarn lint-publint
- name: Build
run: yarn build
- name: Pack
run: yarn pack
- name: Upload
uses: actions/[email protected]
with:
name: react-auth-package
path: ./packages/react-auth/pangeacyber-react-auth-v*.tgz
- name: Upload Docs
uses: actions/[email protected]
with:
name: react-auth-docs
path: ./packages/react-auth/docs/
build-react-mui-audit-log-viewer:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./packages/react-mui-audit-log-viewer
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/react-mui-audit-log-viewer/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Type check
run: yarn typecheck
- name: Upload Docs
uses: actions/[email protected]
with:
name: react-mui-audit-log-viewer-docs
path: ./packages/react-mui-audit-log-viewer/docs/
- name: Test
run: yarn test
- name: Storybook
run: yarn build-storybook
build-react-mui-authn:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/react-mui-authn
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/react-mui-authn/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Storybook
run: yarn build-storybook
- name: Build
run: yarn build
- name: Pack
run: yarn pack
- name: Upload
uses: actions/[email protected]
with:
name: react-mui-authn-package
path: ./packages/react-mui-authn/pangeacyber-react-mui-authn-v*.tgz
build-react-mui-branding:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./packages/react-mui-branding
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/react-mui-branding/yarn.lock
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Storybook
run: yarn build-storybook
build-react-mui-shared:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/react-mui-shared
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/react-mui-shared/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn list
- name: Build
run: yarn build
- name: Test
run: yarn test --ci
- name: Storybook
run: yarn build-storybook
build-react-mui-share-file-viewer:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./packages/react-mui-share-file-viewer
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 22
cache: yarn
cache-dependency-path: ./packages/react-mui-share-file-viewer/yarn.lock
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Build Storybook
run: yarn build-storybook
- name: Build docs
run: yarn build-docs
- name: publint
run: yarn lint-publint
- name: Upload docs
uses: actions/[email protected]
with:
name: react-mui-share-file-viewer-docs
path: ./packages/react-mui-share-file-viewer/docs/
build-vanilla-js:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/vanilla-js
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/vanilla-js/yarn.lock
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: publint
run: yarn lint-publint
build-webcomponents:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/webcomponents
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/webcomponents/yarn.lock
- name: Install dependencies
run: yarn
- name: Typecheck
run: yarn typecheck
- name: Build
run: yarn build
- name: publint
run: yarn lint-publint
lint-prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Prettier
run: yarn lint
lint-pre-commit:
# Skip pre-commit on `main` because the `no-commit-to-branch` hook won't
# allow it.
if: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- uses: pre-commit/[email protected]
test-unit:
needs: [build-pangea-node-sdk]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
defaults:
run:
working-directory: ./packages/pangea-node-sdk
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Unit test
run: yarn test:unit --ci --coverage
docs:
needs: [build-pangea-node-sdk]
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/pangea-node-sdk
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./packages/pangea-node-sdk/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Generate docs
run: yarn generate:docs
- name: Upload
uses: actions/[email protected]
with:
name: node_sdk.json
path: ./packages/pangea-node-sdk/docs.json
examples:
needs: [setup, build-pangea-node-sdk]
runs-on: ubuntu-latest
strategy:
matrix:
example: ${{ fromJSON(needs.setup.outputs.examples-matrix) }}
defaults:
run:
working-directory: ./examples/${{ matrix.example }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache-dependency-path: ./examples/${{ matrix.example }}/yarn.lock
- name: Install dependencies
run: yarn install
- name: Download locally built pangea-node-sdk
uses: actions/[email protected]
with:
name: pangea-node-sdk-package
path: ./packages/pangea-node-sdk
- name: Extract locally built pangea-node-sdk
run: tar -xf package.tgz --strip-components 1 -C .
working-directory: ./packages/pangea-node-sdk
examples-react-audit-log-viewer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/react-audit-log-viewer
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 22
cache: yarn
cache-dependency-path: ./examples/react-audit-log-viewer/yarn.lock
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Unit test
run: yarn test
- name: Cypress run
uses: cypress-io/[email protected]
with:
start: yarn start:ci
working-directory: ./examples/react-audit-log-viewer