Run phpcs checks in parallel

This commit is contained in:
wotnak 2023-12-28 19:26:31 +01:00
parent a2bd7136cf
commit dfc25b5865
No known key found for this signature in database
GPG Key ID: B00835978B0C9B6B
1 changed files with 3 additions and 3 deletions

View File

@ -72,13 +72,13 @@ jobs:
- name: Load farmos/farmos:3.x-dev image
run: docker load < /tmp/farmos-dev.tar
- name: Run PHP CodeSniffer
run: docker run farmos/farmos:3.x-dev phpcs /opt/drupal/web/profiles/farm
run: docker run farmos/farmos:3.x-dev phpcs --parallel=$(nproc) /opt/drupal/web/profiles/farm
- name: Run PHPStan
run: docker run farmos/farmos:3.x-dev phpstan analyze --memory-limit 1G /opt/drupal/web/profiles/farm
- name: Check PHP compatibility of contrib modules and themes (ignore warnings).
run: |
docker run farmos/farmos:3.x-dev phpcs --standard=PHPCompatibility --runtime-set testVersion 8.2- --warning-severity=0 /opt/drupal/web/modules
docker run farmos/farmos:3.x-dev phpcs --standard=PHPCompatibility --runtime-set testVersion 8.2- --warning-severity=0 /opt/drupal/web/themes
docker run farmos/farmos:3.x-dev phpcs --parallel=$(nproc) --standard=PHPCompatibility --runtime-set testVersion 8.2- --warning-severity=0 /opt/drupal/web/modules
docker run farmos/farmos:3.x-dev phpcs --parallel=$(nproc) --standard=PHPCompatibility --runtime-set testVersion 8.2- --warning-severity=0 /opt/drupal/web/themes
test:
name: Run PHPUnit tests
runs-on: ubuntu-latest