Skip to content

Commit e186140

Browse files
authored
Merge pull request #813 from kenjis/reuse-phpcpd.yml
chore: use codeigniter4/.github/.github/workflows/phpcpd.yml
2 parents 6be3162 + d7449c4 commit e186140

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/phpcpd.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,8 @@ on:
1515
- '.github/workflows/phpcpd.yml'
1616

1717
jobs:
18-
build:
19-
name: Code Copy-Paste Detection
20-
runs-on: ubuntu-latest
21-
if: "!contains(github.event.head_commit.message, '[ci skip]')"
22-
23-
steps:
24-
- name: Checkout
25-
uses: actions/checkout@v4
26-
27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: '8.0'
31-
tools: phpcpd
32-
extensions: dom, mbstring
33-
coverage: none
34-
35-
- name: Detect duplicate code
36-
run: phpcpd src/ tests/ --exclude src/Database/Migrations/2020-12-28-223112_create_auth_tables.php --exclude src/Authentication/Authenticators/HmacSha256.php --exclude tests/Authentication/Authenticators/AccessTokenAuthenticatorTest.php
18+
phpcpd:
19+
uses: codeigniter4/.github/.github/workflows/phpcpd.yml@main
20+
with:
21+
dirs: "src/ tests/"
22+
options: "--exclude src/Database/Migrations/2020-12-28-223112_create_auth_tables.php --exclude src/Authentication/Authenticators/HmacSha256.php --exclude tests/Authentication/Authenticators/AccessTokenAuthenticatorTest.php"

0 commit comments

Comments
 (0)