use unique key for provider key #188
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: Code styles | |
on: [push] | |
jobs: | |
phpcs: | |
name: phpcs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v2 | |
- uses: actions/checkout@v4 | |
- run: composer install --prefer-dist | |
- run: ./vendor/bin/phpcs ./ --report=checkstyle | cs2pr | |
phpmd: | |
name: phpmd | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v2, phpmd | |
- uses: actions/checkout@v4 | |
- run: composer install --prefer-dist | |
- run: phpmd ./ text ./phpmd.xml --suffixes php,module,inc,install,test,profile,theme,css,info,txt --exclude *Test.php,*vendor/* | |
phpcpd: | |
name: phpcpd | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v2, phpcpd | |
- uses: actions/checkout@v4 | |
- run: composer install --prefer-dist | |
- run: phpcpd ./src --suffix .php --suffix .module --suffix .inc --suffix .install --suffix .test --suffix .profile --suffix .theme --suffix .css --suffix .info --suffix .txt --exclude *.md --exclude *.info.yml --exclude tests --exclude vendor/ | |
phpdd: | |
name: PhpDeprecationDetector (phpdd) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker compose -f docker-compose.yml pull --include-deps drupal | |
- name: Build the docker-compose stack | |
run: docker compose -f docker-compose.yml build drupal | |
- name: Run phpdd | |
run: docker compose run drupal phpdd ./web/modules/contrib/factory_lollipop/ --file-extensions php,module,inc,install,test,profile,theme,info --exclude vendor |