Skip to content

ci: uniforma i gate di review #25

ci: uniforma i gate di review

ci: uniforma i gate di review #25

Workflow file for this run

name: React Doctor
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches: [main]
permissions:
contents: read
pull-requests: write
concurrency:
group: react-doctor-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
react-doctor:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
persist-credentials: false
- id: doctor
uses: millionco/react-doctor@736abc183ac491b4e954fc6bedec3a9a1b73d38b # v2.2.8
with:
version: latest
scope: ${{ github.event_name == 'pull_request' && 'changed' || 'full' }}
blocking: warning
comment: "false"
review-comments: "true"
commit-status: "false"
- name: Blocca warning ed errori
if: always()
env:
ERRORS: ${{ steps.doctor.outputs.error-count }}
WARNINGS: ${{ steps.doctor.outputs.warning-count }}
run: test "${ERRORS:-1}" -eq 0 && test "${WARNINGS:-1}" -eq 0