chore(deps): bump the react-aria group across 1 directory with 3 updates #611
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: React 18 compatibility | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/**' | |
| env: | |
| NODE_VERSION: '24.16.0' | |
| jobs: | |
| setup: | |
| uses: ./.github/workflows/_setup.yml | |
| secrets: inherit | |
| with: | |
| cacheKey: ${{ github.sha }}-react18 | |
| react18: | |
| name: Build & test with React 18 | |
| runs-on: ubuntu-latest | |
| needs: setup | |
| steps: | |
| - name: Use "setup" cache | |
| id: setup-cache | |
| uses: actions/cache@v6 | |
| with: | |
| path: | | |
| ./* | |
| ~/.pnpm-store | |
| key: ${{ github.sha }}-react18 | |
| - name: Fallback checkout (cache miss) | |
| if: steps.setup-cache.outputs.cache-hit != 'true' | |
| uses: actions/checkout@v7 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| package-manager-cache: false | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| - name: Fallback install (cache miss) | |
| if: steps.setup-cache.outputs.cache-hit != 'true' | |
| run: pnpm install | |
| - name: Override to React 18 | |
| run: | | |
| pnpm add -Dw react@18 react-dom@18 @types/react@18 @types/react-dom@18 | |
| - name: Build packages | |
| run: pnpm run build | |
| - name: Test packages | |
| run: pnpm run test | |
| - name: Type check packages | |
| run: | | |
| pnpm --filter @equinor/eds-tokens types | |
| pnpm --filter @equinor/eds-utils types | |
| pnpm --filter @equinor/eds-icons types | |
| pnpm --filter @equinor/eds-core-react types | |
| pnpm --filter @equinor/eds-lab-react types | |
| pnpm --filter @equinor/eds-data-grid-react types |