Skip to content

Commit

Permalink
Added extra check for php 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnar Eivind Martinsen committed Sep 24, 2024
1 parent 87a38a4 commit 08f5e48
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,13 @@ name: PHP Code Sniffer
on: push

jobs:
phpcs_8_2:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP Code Sniffer
run: |
cd .ci
php --version
composer require --dev dealerdirect/phpcodesniffer-composer-installer
composer require --dev drupal/coder
- name: Check coding standards
run: |
.ci/vendor/bin/phpcs --colors -n --standard=Drupal --extensions=php,module,yml metsis
phpcs_8_3:
runs-on: ubuntu-latest
- phpcs_8_2:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.2'
- name: Checkout
uses: actions/checkout@v4

Expand All @@ -43,3 +23,23 @@ jobs:
- name: Check coding standards
run: |
.ci/vendor/bin/phpcs --colors -n --standard=Drupal --extensions=php,module,yml metsis
- phpcs_8_3:
runs-on: ubuntu-latest
steps:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Checkout
uses: actions/checkout@v4

- name: Install PHP Code Sniffer
run: |
cd .ci
php --version
composer require --dev dealerdirect/phpcodesniffer-composer-installer
composer require --dev drupal/coder
- name: Check coding standards
run: |
.ci/vendor/bin/phpcs --colors -n --standard=Drupal --extensions=php,module,yml metsis

0 comments on commit 08f5e48

Please sign in to comment.