chore(deps): bump style-loader from 3.3.4 to 4.0.0 (#264) #274
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: Run Tests | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.x, 24.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run tests with coverage | |
| run: npm test -- --coverage || npm test | |
| env: | |
| CI: true | |
| - name: Upload coverage reports | |
| if: success() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-node-${{ matrix.node-version }} | |
| path: | | |
| packages/*/coverage/ | |
| coverage/ | |
| if-no-files-found: ignore | |
| retention-days: 7 | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results-node-${{ matrix.node-version }} | |
| path: | | |
| packages/*/test-results/ | |
| test-results/ | |
| if-no-files-found: ignore | |
| retention-days: 7 | |
| - name: Run NPM build to check there are no build errors | |
| run: npm run build |