Skip to content

Commit

Permalink
Upgrade PHP version and action versions in CI workflows
Browse files Browse the repository at this point in the history
Updated PHP version from 8.1 to 8.3 across all GitHub Actions workflows and upgraded `actions/checkout` to version v3. These changes ensure compatibility with the latest PHP features and improve the reliability of the checkout process. Additionally, simplified the composer validation step in coding-standards.yml for clarity.
  • Loading branch information
koriym committed Nov 22, 2024
1 parent c48ad03 commit 32cc00d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
tools: cs2pr
coverage: none

Expand All @@ -35,9 +35,7 @@ jobs:
run: composer install --no-interaction --no-progress --prefer-dist

- name: Validate composer.json
run |
composer update
composer validate --strict
run: composer validate --strict

- name: Run PHP_CodeSniffer
run: ./vendor/bin/phpcs -q --no-colors --report=checkstyle src tests | cs2pr
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: 8.3
coverage: pcov
ini-values: zend.assertions=1

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
tools: cs2pr
coverage: none

Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3

- name: Get composer cache directory
id: composer-cache
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.3
coverage: none

- name: Get composer cache directory
Expand Down

0 comments on commit 32cc00d

Please sign in to comment.