Skip to content

Merge pull request #222 from ePlus-DEV/dependabot/npm_and_yarn/produc… #436

Merge pull request #222 from ePlus-DEV/dependabot/npm_and_yarn/produc…

Merge pull request #222 from ePlus-DEV/dependabot/npm_and_yarn/produc… #436

Workflow file for this run

name: React Doctor
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
react-doctor:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.0
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24.x
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts --ignore-engines
- name: Scan React changes
if: github.event_name == 'pull_request'
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: npx --yes react-doctor@0.2.16 . --verbose --diff "$BASE_SHA"
- name: Scan full React project
if: github.event_name != 'pull_request'
run: npx --yes react-doctor@0.2.16 . --verbose