Bugfix: console errors on unmount #1
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: CI | |
| on: | |
| push: | |
| branches: [master, main] | |
| pull_request: | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "18" | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| # ubuntu-latest ships Google Chrome and a matching ChromeDriver; expose | |
| # the driver on PATH so selenium (pinned <=4.2.0, no Selenium Manager) | |
| # can find it. | |
| - name: Put ChromeDriver on PATH | |
| run: echo "$CHROMEWEBDRIVER" >> "$GITHUB_PATH" | |
| - name: Install Python dependencies | |
| run: pip install -r requirements-dev.txt | |
| - name: Lint with flake8 | |
| run: npm run lint | |
| - name: Build package | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Run tests | |
| run: npm run test -- --headless | |
| - name: Run tests using React 18 | |
| run: npm run test -- --headless | |
| env: | |
| REACT_VERSION: 18.2.0 |