annotate tests requiring 3rd party modules Paragraphs #140
Workflow file for this run
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: '7.3' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v1 | |
- 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: '7.3' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v1, 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: '7.3' | |
extensions: mbstring, intl, gd, xml, dom, json, fileinfo, curl, zip, iconv | |
tools: cs2pr, composer:v1, 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 |