Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
sudo mv "shellcheck-v${SHELLCHECK_VERSION}/shellcheck" /usr/local/bin/shellcheck
shellcheck --version

- name: Install PHP CodeSniffer with Drupal coding standard
run: |
composer global config --no-interaction allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require "squizlabs/php_codesniffer=*" "drupal/coder=*"
# Add Composer global bin-dir to PATH so phpcs is available system-wide
echo "$(composer global config bin-dir --absolute --quiet)" >> "$GITHUB_PATH"
env:
COMPOSER_ALLOW_SUPERUSER: '1'

- name: Run unit tests
run: |
bash tests/unit-test.sh
Expand Down
Loading