WIP #3822
This file contains 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 17 | |
on: | |
merge_group: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
react17: | |
name: Test in React 17 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9.15.0 | |
- name: Setup Node 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: pnpm | |
- name: Install node-gyp | |
run: pnpm install --global node-gyp | |
- name: Install package.json | |
run: pnpm install --prefer-offline | |
- name: Build CLI | |
run: pnpm build:cli | |
# TODO: Will nohoist help here? | |
- name: Install testing tools for React 17 | |
run: npx ts-node tools/test/scripts/install-react17.ts | |
- name: Build packages | |
run: pnpm build | |
- name: Run tests in React 17 | |
run: pnpm lg test --react17 |