Update react monorepo to v19 (major) #776
Workflow file for this run
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: Checks | |
| on: [pull_request] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: asdf-vm/actions/install@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: pnpm | |
| - uses: actions/cache@v4 | |
| id: cache-opam | |
| with: | |
| path: | | |
| ~/.opam | |
| _opam | |
| key: opam-${{ runner.os }}-${{ runner.arch }}-${{ github.head_ref }}-${{ github.sha }} | |
| restore-keys: | | |
| opam-${{ runner.os }}-${{ runner.arch }}-${{ github.head_ref }}-${{ github.sha }} | |
| opam-${{ runner.os }}-${{ runner.arch }}-${{ github.head_ref }}- | |
| opam-${{ runner.os }}-${{ runner.arch }}-${{ github.base_ref }}- | |
| opam-${{ runner.os }}-${{ runner.arch }}- | |
| - run: opam init --bare --disable-sandboxing --no-setup && opam switch create --yes --deps-only --with-dev-setup --with-test . | |
| if: ${{ steps.cache-opam.outputs.cache-hit == '' }} | |
| - run: opam install --yes --deps-only --with-dev-setup --with-test . | |
| if: ${{ steps.cache-opam.outputs.cache-hit != '' }} | |
| - run: opam exec -- opam-dune-lint | |
| - run: opam exec -- dune build @fmt | |
| - run: opam exec -- dune build | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm test | |
| - run: pnpm run build | |
| - run: pnpm run check-size-limits |