Merge pull request #50 from mkuettel/method-accessors-to-table-name #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHPCPD | |
on: | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- '**.php' | |
- '.github/workflows/phpcpd.yml' | |
push: | |
branches: | |
- develop | |
paths: | |
- '**.php' | |
- '.github/workflows/phpcpd.yml' | |
jobs: | |
build: | |
name: Code Copy-Paste Detection | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
tools: phpcpd | |
extensions: dom, mbstring | |
coverage: none | |
- name: Detect duplicate code | |
run: phpcpd src/ tests/ |