diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9210dba..987aba3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,12 +16,13 @@ jobs: strategy: matrix: node-version: [18.x, 22.x] + react-version: ['18.*', '19.*'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' @@ -29,6 +30,9 @@ jobs: - name: Install run: npm ci + - name: Install react + run: npm install react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} + - name: Lint, format and type check run: npm run verify diff --git a/package-lock.json b/package-lock.json index 6971645..adbaea4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "node": ">= 16.12.0" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^18.0.0 || ^19.0.0" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index 059d941..376b8d7 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,7 @@ "vitest": "^2.1.5" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^18.0.0 || ^19.0.0" }, "engines": { "node": ">= 16.12.0"