Skip to content

Commit

Permalink
fix: should not throw in React 19 (#32)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump vite from 3.2.8 to 3.2.10 (#30)

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 3.2.8 to 3.2.10.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v3.2.10/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v3.2.10/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix yml

* formatting

* prettier

* add more versions

* process env

* format

* support 16 16

* fix ym

* fix typo

* remove only

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
ling1726 and dependabot[bot] authored May 28, 2024
1 parent 3e3d4a3 commit fde0f71
Show file tree
Hide file tree
Showing 8 changed files with 2,121 additions and 274 deletions.
46 changes: 44 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,55 @@ jobs:
- name: Setup node
uses: actions/[email protected]
with:
node-version: 16.x
node-version: 18.x
- run: npm install
- run: npm run format:check
- run: npm run type-check
- run: npm run test:ci
- run: npm run build
- name: "Check for unstaged changes"
run: |
git status --porcelain
git diff-index --quiet HEAD -- || exit 1
compat-modern:
strategy:
matrix:
# rc tag should be react 19 release candidate
react: [18, rc]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout [main]
with:
fetch-depth: 0
- name: Setup node
uses: actions/[email protected]
with:
node-version: 18.x
- run: npm install
- run: npm install react@${{matrix.react}} react-dom@${{matrix.react}} --force
- run: npm run test:ci
env:
REACT_VERSION: ${{matrix.react}}
- run: npm run build

compat-legacy:
strategy:
matrix:
react: [16, 17]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout [main]
with:
fetch-depth: 0
- name: Setup node
uses: actions/[email protected]
with:
node-version: 18.x
- run: npm install
- run: npm install react@${{matrix.react}} react-dom@${{matrix.react}} @testing-library/react-hooks --force
- run: npm run test:ci -- --config ./vitest.16.17.config.ts
env:
REACT_VERSION: ${{matrix.react}}
- run: npm run build
Loading

0 comments on commit fde0f71

Please sign in to comment.