[WTF-2485]: Remove enzyme from widget generator in preparation of React 19 #499
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: Script tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'pnpm-lock.yaml' | |
| - 'packages/generator-widget/**' | |
| - 'packages/pluggable-widgets-tools/**' | |
| - 'packages/command-tests/**' | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - 'pnpm-lock.yaml' | |
| - 'packages/generator-widget/**' | |
| - 'packages/pluggable-widgets-tools/**' | |
| - 'packages/command-tests/**' | |
| jobs: | |
| test: | |
| name: "Script tests (Node ${{ matrix.node }}, ${{ matrix.os }})" | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| node: [16, 18] | |
| os: [windows-latest, ubuntu-latest] | |
| steps: | |
| - name: "Checking-out code" | |
| uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2 | |
| with: | |
| submodules: false | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0 | |
| if: matrix.node == 16 | |
| with: | |
| version: 8 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda #v4.1.0 | |
| if: matrix.node == 18 | |
| with: | |
| version: 10 | |
| - name: "Defining node version" | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: ${{ matrix.node == 18 && '18.15.0' || matrix.node }} | |
| cache: 'pnpm' | |
| - name: "Installing dependencies" | |
| run: pnpm install | |
| - name: Increase number of watchers | |
| if: startsWith(matrix.os, 'ubuntu') | |
| run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
| - name: "Testing PWT commands" | |
| working-directory: ./packages/command-tests | |
| run: pnpm start |