chore: fix pre-commit hook and improve the test script #2603
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: Documentation tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| markdownlint: | |
| name: markdownlint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DavidAnson/markdownlint-cli2-action@v15 | |
| with: | |
| config: .markdownlint.yaml | |
| globs: | | |
| docs/**/*.md | |
| vale: | |
| name: vale action | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: errata-ai/vale-action@reviewdog | |
| with: | |
| files: '["README.md", "docs", ".changeset"]' | |
| filter_mode: file | |
| fail_on_error: true | |
| linkcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Markup Link Checker (mlc) | |
| uses: becheran/mlc@v0.16.1 | |
| with: | |
| args: ./docs |