chore: add a11y highlighting rules to Storybook #9103
Workflow file for this run
This file contains 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: Lint prose | |
on: | |
push: | |
branches-ignore: | |
- master | |
pull_request: | |
branches: | |
- master | |
paths: | |
- docs/src/documents/** | |
- .github/styles/** | |
- .vale.ini | |
- packages/orbit-components/src/**/*.md | |
jobs: | |
prose: | |
runs-on: ubuntu-latest | |
# https://github.com/reviewdog/reviewdog/issues/1696 | |
if: ${{ github.event.pull_request.changed_files < 301 }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# https://github.com/errata-ai/vale-action/issues/39 | |
- name: Touch markdown file | |
run: touch docs/src/snippets/more-than-color.mdx | |
- name: Vale | |
uses: errata-ai/[email protected] | |
with: | |
files: '["docs/src/documentation", "docs/src/snippets"]' | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |