Bump @types/react from 19.0.6 to 19.0.8 #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
react-version: [18.x, 19.x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Get pnpm version from package.json | |
id: pnpm-version | |
shell: bash | |
run: echo "pnpm_version=$(node -p 'require(`./package.json`).engines.pnpm')" >> $GITHUB_OUTPUT | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: ${{ steps.pnpm-version.outputs.pnpm_version }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: "package.json" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Install specific React version | |
run: | | |
pnpm add -D react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} | |
- name: Run tests with typechecking and coverage | |
run: pnpm run test | |
- name: Run type checks | |
run: pnpm exec tsc --noEmit | |
- name: Run linting | |
run: pnpm lint | |
- name: Build and check package types | |
run: pnpm build && pnpm exec attw --pack --profile=node16 |