Repository navigation
[CDX-484] Add opt-in radio selection mode to FilterOption component #15
Workflow file for this run
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 compat matrix | |
| on: | |
| pull_request: | |
| branches: | |
| - "**" | |
| concurrency: | |
| group: react-compat-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| compat: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| react-major: ["16", "17", "18", "19"] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.18.0" | |
| - name: Install library deps | |
| run: npm ci | |
| - name: Build library | |
| run: npm run compile | |
| - name: Pack library | |
| shell: bash | |
| run: | | |
| npm pack --pack-destination . | |
| tarballs=(constructor-io-constructorio-ui-components-*.tgz) | |
| if [ ${#tarballs[@]} -ne 1 ]; then | |
| echo "Expected exactly 1 tarball, found ${#tarballs[@]}: ${tarballs[*]}" >&2 | |
| exit 1 | |
| fi | |
| mv "${tarballs[0]}" constructorio-ui-components.tgz | |
| - name: Install fixture deps | |
| working-directory: test/react-compat/${{ matrix.react-major }} | |
| run: npm ci --no-audit --no-fund | |
| - name: Typecheck fixture | |
| working-directory: test/react-compat/${{ matrix.react-major }} | |
| run: npm run typecheck | |
| - name: Webpack build | |
| working-directory: test/react-compat/${{ matrix.react-major }} | |
| run: npm run build | |
| - name: Run fixture tests | |
| working-directory: test/react-compat/${{ matrix.react-major }} | |
| run: npm test |