Skip to content

Commit 5c82c43

Browse files
authored
Merge pull request #5240 from codeigniter4/phpcpd-tool
Switch PHPCPD to tool
2 parents 8cd8fed + c497b28 commit 5c82c43

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/test-phpcpd.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ jobs:
3434
uses: shivammathur/setup-php@v2
3535
with:
3636
php-version: '8.0'
37-
tools: phive
38-
extensions: intl, json, mbstring, xml
37+
tools: phpcpd
38+
extensions: dom, mbstring
3939

4040
- name: Detect code duplication
41-
run: |
42-
sudo phive --no-progress install --global --trust-gpg-keys 4AA394086372C20A phpcpd
43-
phpcpd --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php --exclude system/Database/SQLSRV/Forge.php app/ public/ system/
41+
run: phpcpd --exclude system/Test --exclude system/ThirdParty --exclude system/Database/SQLSRV/Builder.php --exclude system/Database/SQLSRV/Forge.php -- app/ public/ system/

0 commit comments

Comments
 (0)