Skip to content

Add new test

Add new test #56

Workflow file for this run

name: PHPCPD
on:
pull_request:
branches:
- main
paths:
- '**.php'
- '.github/workflows/phpcpd.yml'
push:
branches:
- main
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/ --exclude src/Database/Migrations/2020-12-28-223112_create_auth_tables.php