Added dependabot file. #123
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 sniffer custom modules/themes. | |
on: [push] | |
jobs: | |
build: | |
name: Install dependencies and run phpcs. | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php_version: ['8.3'] | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v4 | |
- name: Set up PHP ${{ matrix.php_version }}. | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php_version }} | |
- name: Install dependencies. | |
run: composer install --dev | |
- name: Run phpcs with Drupal coding standards. | |
run: > | |
./vendor/bin/phpcs \ | |
--standard="Drupal,DrupalPractice" -n \ | |
--extensions="php,module,inc,install,test,profile,theme" \ | |
modules/srdgs_custom modules/user_welcome modules/tragedy_commons |