Skip to content

Internal: Update HydeStan workflow to check documentation formatting #7106

Internal: Update HydeStan workflow to check documentation formatting

Internal: Update HydeStan workflow to check documentation formatting #7106

Workflow file for this run

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 > /dev/null; 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