fix(flags): normalize short flag consistency across cli-cm-regex-validate, tsgen, migration, and apps-cli #1
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: Run Unit Tests (Parallel) | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| workflow_dispatch: | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.28.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| cache: 'pnpm' | |
| - name: Prune pnpm store | |
| run: pnpm store prune | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build all plugins | |
| run: NODE_ENV=PREPACK_MODE pnpm -r --sort run build | |
| - name: Upload workspace | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-workspace-${{ github.sha }} | |
| path: . | |
| retention-days: 1 | |
| compression-level: 6 | |
| test: | |
| needs: setup | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - package: contentstack-import | |
| cmd: npm run test:unit | |
| - package: contentstack-export | |
| cmd: npm run test:unit | |
| - package: contentstack-audit | |
| cmd: npm run test:unit | |
| - package: contentstack-migration | |
| cmd: npm run test | |
| - package: contentstack-export-to-csv | |
| cmd: npm run test:unit | |
| - package: contentstack-bootstrap | |
| cmd: npm run test | |
| - package: contentstack-import-setup | |
| cmd: npm run test:unit | |
| - package: contentstack-branches | |
| cmd: npm run test:unit | |
| - package: contentstack-query-export | |
| cmd: npm run test:unit | |
| - package: contentstack-apps-cli | |
| cmd: npm run test:unit:report | |
| - package: contentstack-content-type | |
| cmd: npm run test:unit | |
| - package: contentstack-cli-cm-regex-validate | |
| cmd: npm run test:unit | |
| - package: contentstack-migrate-rte | |
| cmd: npm test | |
| - package: contentstack-bulk-operations | |
| cmd: npm test | |
| - package: contentstack-variants | |
| cmd: npm run test | |
| - package: contentstack-asset-management | |
| cmd: npm run test:unit | |
| - package: contentstack-clone | |
| cmd: npm run test:unit | |
| # - package: contentstack-external-migrate # DX-9432: ESLint errors blocking CI — assigned to Netraj | |
| # cmd: npm test | |
| - package: contentstack-seed | |
| cmd: npm test | |
| steps: | |
| - name: Download workspace | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: built-workspace-${{ github.sha }} | |
| path: . | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Run tests — ${{ matrix.package }} | |
| working-directory: ./packages/${{ matrix.package }} | |
| run: ${{ matrix.cmd }} |