test(DX-2098): add FormField readOnly coverage to satisfy CI threshold #4146
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: Rush Design System CI | |
| on: | |
| push: | |
| workflow_dispatch: | |
| env: | |
| BROWSERSLIST_IGNORE_OLD_DATA: 1 | |
| jobs: | |
| design-system-ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: PNPM cache via actions/cache@v3 | |
| id: pnpm-cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: /home/runner/work/design-system/design-system/common/temp/pnpm-store/v3 | |
| key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm- | |
| - name: Install dependencies | |
| run: node common/scripts/install-run-rush.js install | |
| - name: rush change --verify | |
| run: node common/scripts/install-run-rush.js change --verify | |
| - name: Build components | |
| run: node common/scripts/install-run-rush.js build --timeline | |
| - name: Run Unit Tests | |
| run: node common/scripts/install-run-rush.js test:ci | |
| - name: ESLint | |
| run: node common/scripts/install-run-rush.js lint | |
| - name: Generate and upload coverage report | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: | | |
| npx codecov |