Updated to typescript and to use the latest jest #305
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: tests | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| react-version: [18, 19] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js latest | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - name: Install specific React version | |
| run: npm install react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run the tests | |
| run: npm test | |
| env: | |
| CI: true |