chore: reduce test task with 16 & 17 (#49300)

This commit is contained in:
二货爱吃白萝卜 2024-06-07 16:26:54 +08:00 committed by GitHub
parent d203401a71
commit c105f2e84b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,6 +116,7 @@ jobs:
REACT: ${{ matrix.react }} REACT: ${{ matrix.react }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: ${{ !(matrix.react == '16' || matrix.react == '17') || matrix.module != 'dist-min' }}
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -315,7 +316,7 @@ jobs:
needs: build needs: build
strategy: strategy:
matrix: matrix:
react: ['16', '17', '18'] react: ['18']
module: [lib, es] module: [lib, es]
shard: ['1/2', '2/2'] shard: ['1/2', '2/2']
env: env:
@ -354,14 +355,6 @@ jobs:
path: ${{ matrix.module }} path: ${{ matrix.module }}
key: ${{ matrix.module }}-${{ github.sha }} key: ${{ matrix.module }}-${{ github.sha }}
- name: install react 16
if: ${{ matrix.react == '16' && (github.event_name != 'pull_request' || matrix.module != 'lib') }}
run: npm run install-react-16
- name: install react 17
if: ${{ matrix.react == '17' && (github.event_name != 'pull_request' || matrix.module != 'lib') }}
run: npm run install-react-17
- name: install react 18 - name: install react 18
if: ${{ matrix.react == '18' && (github.event_name != 'pull_request' || matrix.module != 'lib') }} if: ${{ matrix.react == '18' && (github.event_name != 'pull_request' || matrix.module != 'lib') }}
run: npm run install-react-18 run: npm run install-react-18