Update docs/diagrams/use_cases.md #51
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: React Doctor Scan | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "src/frontend/**" | |
| - ".github/workflows/react-doctor.yml" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "src/frontend/**" | |
| - ".github/workflows/react-doctor.yml" | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| react-doctor: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 # Needed if using diff scanning | |
| - name: Run React Doctor | |
| id: doctor | |
| uses: millionco/react-doctor@main | |
| with: | |
| directory: "./src/frontend" | |
| verbose: true | |
| diff: main | |
| fail-on: none | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Require 85% Health Score | |
| if: ${{ steps.doctor.outputs.score < 85 }} | |
| run: | | |
| echo "Health score (${{ steps.doctor.outputs.score }}) is below minimum required 85 ($<85)" | |
| exit 1 |