fix(a11y): WCAG 2.1 accessibility improvements across Icon component and demo #26
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: | |
| - 'main' | |
| pull_request: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| # Check only — forks and Dependabot (no write access to push fixes) | |
| - name: Lint (check only — forks and Dependabot) | |
| if: | | |
| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner) || | |
| contains(github.actor, 'dependabot') | |
| run: pnpm run lint | |
| # Auto-fix + commit — push to main or human PRs from same repo | |
| - name: Lint (auto-fix) | |
| if: | | |
| !contains(github.actor, 'dependabot') && | |
| (github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner) | |
| run: pnpm run lint:fix || true | |
| - name: Commit lint fixes | |
| if: | | |
| !contains(github.actor, 'dependabot') && | |
| (github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner) | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git diff --quiet || (git add -A && git commit -m "chore(lint): biome auto-fix" && git push) | |
| smoke: | |
| name: Smoke Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 22 | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm -r build |