Fix failing CI job: Resolve Storybook and Jest testing issues including React 19 compatibility #458
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: React Template CI | |
| on: | |
| pull_request_target: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [21.6.2] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn | |
| - name: Lint | |
| run: yarn lint:ci | |
| - name: Test | |
| run: yarn test | |
| - name: Accessibility tests using Storybook | |
| run: yarn playwright install && yarn test-storybook:ci | |
| - name: Build | |
| run: yarn build:prod | |
| - name: LHCI Benchmark | |
| run: yarn lhci | |
| - name: SonarQube Scan | |
| uses: sonarsource/sonarqube-scan-action@master | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} |