Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/react-compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: React Compatibility

on:
pull_request:
branches: [main]

jobs:
build:
name: Build with React ${{ matrix.react }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
react: ["18", "19"]

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci

- name: Install React ${{ matrix.react }}
run: npm install --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }} @types/react@${{ matrix.react }} @types/react-dom@${{ matrix.react }}

- name: Run tests
run: npm test

- name: Build library
run: npm run build-lib

- name: Build docs
run: npm run build-docs
Loading