Skip to content

fix(button): make RuiIcon size prop work inside RuiButton + add xs size #1562

fix(button): make RuiIcon size prop work inside RuiButton + add xs size

fix(button): make RuiIcon size prop work inside RuiButton + add xs size #1562

Workflow file for this run

name: ci
on:
merge_group:
types: [checks_requested]
push:
branches:
- main
- develop
- bugfixes
pull_request:
branches:
- main
- develop
- bugfixes
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions: { }
jobs:
commit-lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@5280c022466e8e5ea34ea201e2fda33875aeefdb # v6
- name: Setup node env πŸ—
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
cache: pnpm
node-version-file: .nvmrc
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: pnpm exec commitlint --from HEAD~1 --to HEAD --verbose
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: pnpm exec commitlint --from "${BASE_SHA}" --to "${HEAD_SHA}" --verbose
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
ci:
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Setup pnpm
uses: pnpm/action-setup@5280c022466e8e5ea34ea201e2fda33875aeefdb # v6
- name: Setup node env πŸ—
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
cache: pnpm
node-version-file: .nvmrc
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install --frozen-lockfile
- name: Run linter πŸ‘€
run: pnpm run lint
- name: Build
run: pnpm run build:prod
- name: Build Storybook
run: pnpm run build:storybook
- name: Install Playwright Browsers (Storybook)
working-directory: packages/ui-library
run: pnpm exec playwright install --with-deps chromium
- name: Run Unit Tests with Coverage
run: pnpm run coverage:unit
- name: Run Storybook Tests with Coverage
run: pnpm run coverage:storybook
- name: Merge Coverage Reports
run: pnpm run coverage:merge
- name: Typecheck
run: pnpm run -r typecheck
- name: Install Playwright Browsers
working-directory: apps/example
run: pnpm exec playwright install --with-deps chromium
- name: Run Playwright tests
working-directory: apps/example
run: pnpm run test:e2e
- name: Upload Playwright Report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: failure()
with:
name: playwright-report
path: |
apps/example/playwright-report/
apps/example/test-results/
retention-days: 7
- name: Upload coverage
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6
with:
token: ${{ secrets.CODECOV_TOKEN }}