-
Notifications
You must be signed in to change notification settings - Fork 66
42 lines (32 loc) · 950 Bytes
/
react17.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install node-gyp
run: yarn global add node-gyp
- name: Install package.json
run: yarn install --prefer-offline
- name: Build CLI
run: yarn 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: yarn build
- name: Run tests in React 17
run: yarn lg test --react17