Fix error when filtering by empty user group (#456) #420
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
# When a PR is opened or a push is made, check code | |
# for duplication with PHP Copy/Paste Detector. | |
name: PHPCPD | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
paths: | |
- '**.php' | |
- '.github/workflows/deduplicate.yml' | |
push: | |
branches: | |
- 'develop' | |
paths: | |
- '**.php' | |
- '.github/workflows/deduplicate.yml' | |
jobs: | |
build: | |
name: Duplicate Code Detection | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
tools: phpcpd | |
extensions: dom, mbstring | |
- name: Detect code duplication | |
run: phpcpd app/ src/ tests/ |