33 lines
829 B
YAML
33 lines
829 B
YAML
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
|