fix(deps): update react monorepo (minor) #573
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: Pull Request Checker | |
| on: | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| node-version: [16.x, 18.x] | |
| os: [ubuntu-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache pnpm modules | |
| uses: actions/cache@v3 | |
| env: | |
| cache-name: cache-pnpm-modules | |
| with: | |
| path: ~/.pnpm-store | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}- | |
| - uses: pnpm/action-setup@v2.2.4 | |
| with: | |
| version: latest | |
| run_install: true | |
| - name: Install dependencies | |
| run: pnpm i --no-optional | |
| - name: Build project | |
| run: | | |
| npm run build | |
| - name: Test project | |
| run: | | |
| pnpm test |