-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (38 loc) · 1 KB
/
react-doctor.yml
File metadata and controls
43 lines (38 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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