Merge pull request #2705 from arduino/compliance-uploads-4nov #8626
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: Validate Content | |
| on: | |
| repository_dispatch: | |
| types: deploy | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, ready_for_review, reopened] | |
| jobs: | |
| spell_check: | |
| name: Spell Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run spell check | |
| run: | | |
| pip install codespell==2.3.0 | |
| codespell -I "scripts/resources/spell-check-ignore-list.txt" --skip="*.svg,*.dxf,*.pdf" ./content/ | |
| lint: | |
| name: Content Linter | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node_version: [14] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run linter | |
| run: | | |
| cd scripts/validation | |
| ./content-lint.sh -p '../../content/hardware/' |