File tree Expand file tree Collapse file tree 1 file changed +5
-37
lines changed
Expand file tree Collapse file tree 1 file changed +5
-37
lines changed Original file line number Diff line number Diff line change 1212 - ' public/**.php'
1313 - ' system/**.php'
1414 - ' .github/workflows/test-phpcpd.yml'
15-
1615 push :
1716 branches :
1817 - ' develop'
2322 - ' system/**.php'
2423 - ' .github/workflows/test-phpcpd.yml'
2524
26- concurrency :
27- group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
28- cancel-in-progress : true
29-
30- permissions :
31- contents : read
32-
3325jobs :
34- build :
35- name : Duplicate Code Detection
36- runs-on : ubuntu-22.04
37- steps :
38- - name : Checkout
39- uses : actions/checkout@v4
40-
41- - name : Setup PHP
42- uses : shivammathur/setup-php@v2
43- with :
44- php-version : ' 8.1'
45- tools : phpcpd
46- extensions : dom, mbstring
47-
48- - name : Detect code duplication
49- run : phpcpd
50- --exclude system/Test
51- --exclude system/ThirdParty
52- --exclude system/Database/SQLSRV/Builder.php
53- --exclude system/Database/SQLSRV/Forge.php
54- --exclude system/Database/MySQLi/Builder.php
55- --exclude system/Database/OCI8/Builder.php
56- --exclude system/Database/Postgre/Builder.php
57- --exclude system/Debug/Exceptions.php
58- --exclude system/HTTP/SiteURI.php
59- --exclude system/Validation/Rules.php
60- --exclude system/Autoloader/Autoloader.php
61- --exclude system/Config/Filters.php
62- -- app/ public/ system/
26+ phpcpd :
27+ uses : codeigniter4/.github/.github/workflows/phpcpd.yml@main
28+ with :
29+ dirs : " app/ public/ system/"
30+ options : " --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php --exclude system/Database/MySQLi/Builder.php --exclude system/Database/OCI8/Builder.php --exclude system/Database/Postgre/Builder.php --exclude system/Debug/Exceptions.php --exclude system/HTTP/SiteURI.php --exclude system/Validation/Rules.php --exclude system/Autoloader/Autoloader.php --exclude system/Config/Filters.php"
You can’t perform that action at this time.
0 commit comments