2.1.0 #46
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| checks: | |
| name: Lint, Test, Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm lint | |
| - name: Check formatting | |
| run: pnpm format:check | |
| - name: Run unit coverage | |
| run: pnpm test:coverage:unit | |
| - name: Upload unit coverage to Codecov | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| disable_search: true | |
| files: coverage/unit/lcov.info | |
| fail_ci_if_error: true | |
| - name: Build package | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| run: pnpm build | |
| - name: Package smoke | |
| run: pnpm test:package-smoke | |
| storybook-browser: | |
| name: Storybook Browser Checks | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright browser (Chromium) | |
| run: pnpm exec playwright install --with-deps chromium | |
| - name: Run Storybook browser regression checks | |
| env: | |
| CI: true | |
| run: pnpm test:storybook | |
| react-compat-smoke: | |
| name: React Compat Smoke (${{ matrix.react-version }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - react-version: 16 | |
| react: 16.14.0 | |
| react-dom: 16.14.0 | |
| - react-version: 17 | |
| react: 17.0.2 | |
| react-dom: 17.0.2 | |
| - react-version: 18 | |
| react: 18.3.1 | |
| react-dom: 18.3.1 | |
| - react-version: 19 | |
| react: 19.2.4 | |
| react-dom: 19.2.4 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run React compat smoke | |
| env: | |
| REACT_COMPAT_LABEL: react${{ matrix.react-version }} | |
| REACT_COMPAT_REACT: ${{ matrix.react }} | |
| REACT_COMPAT_REACT_DOM: ${{ matrix.react-dom }} | |
| run: pnpm test:react-compat:matrix |