diff --git a/.github/workflows/react-doctor.yml b/.github/workflows/react-doctor.yml new file mode 100644 index 00000000..7c62f244 --- /dev/null +++ b/.github/workflows/react-doctor.yml @@ -0,0 +1,32 @@ +name: React Doctor + +on: + push: + branches: [main] + paths: + - "frontend/src/landing/**" + - ".github/workflows/react-doctor.yml" + pull_request: + paths: + - "frontend/src/landing/**" + - ".github/workflows/react-doctor.yml" + +permissions: + contents: read + pull-requests: write + statuses: write + +jobs: + doctor: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + # Composite action: installs react-doctor itself, runs the scan against + # the landing site, posts a sticky PR summary + inline review comments, + # and publishes a commit status. Default blocking=error means only + # error-severity findings fail the job; warnings are reported but don't + # block. + - uses: millionco/react-doctor@v2 + with: + directory: frontend/src/landing