chore: Remove dead dependencies #13
This file contains hidden or 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: [master] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| react-version: [18, 19] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install React ${{ matrix.react-version }} | |
| run: npm install --no-save react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} | |
| - name: List dependency versions | |
| run: | | |
| echo "npm: $(npm --version)" | |
| echo "node: $(node --version)" | |
| npm ls react react-dom || true | |
| - name: Run tests | |
| run: npm run test |