Skip to content

Fix

Fix #49

Workflow file for this run

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