Internal: Update HydeStan workflow to check documentation formatting #7111
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: 🔬 HydeStan | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Static Analysis | |
run: php ./monorepo/HydeStan/run.php | |
- name: Check Documentation Formatting | |
run: | | |
php ./monorepo/scripts/docs/MarkdownFormatter.php | |
if git diff --exit-code; then | |
echo "Documentation formatting is valid." | |
else | |
echo "Documentation formatting is not valid. Please run 'php ./monorepo/scripts/docs/MarkdownFormatter.php' to fix it." | |
exit 1 | |
fi |