Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try using phpcs-drupal-check-with-annotations for coding standards check #16

Draft
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
name: Coding standards checks
needs: build
runs-on: ubuntu-latest
continue-on-error: true

strategy:
fail-fast: false
Expand All @@ -137,10 +138,13 @@ jobs:
with:
php-version: ${{ matrix.php-version }}

- name: Run coding standards checks
run: |
cd html
./bin/phpcs -p ${{inputs.project_path}}
- name: Drupal PHPCS check with annotation
uses: guix77/[email protected]

# - name: Run coding standards checks
# run: |
# cd html
# ./bin/phpcs -p ${{inputs.project_path}}

phpstan:
name: Static analysis checks
Expand Down Expand Up @@ -222,4 +226,4 @@ jobs:
mkdir -p ./html/web/sites/simpletest && chmod 777 ./html/web/sites/simpletest
sed -i "s#http://localgov.lndo.site#http://drupal#" ./html/phpunit.xml.dist
docker exec -t drupal bash -c 'chown docker:docker -R /var/www/html'
docker exec -u docker -t drupal bash -c "cd /var/www/html && ./bin/paratest --processes=4 /var/www/html/${{inputs.project_path}}"
docker exec -u docker -t drupal bash -c "cd /var/www/html && ./bin/paratest --processes=4 /var/www/html/${{inputs.project_path}}"