-
Notifications
You must be signed in to change notification settings - Fork 66
46 lines (35 loc) · 1008 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
43
44
45
46
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@v4
- name: pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.0
- name: Setup Node 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Install node-gyp
run: pnpm add --global node-gyp
- name: Install package.json
run: pnpm install --prefer-offline
- name: Build CLI
run: pnpm build:cli
- 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 run test --react17