Skip to content

Commit

Permalink
Merge pull request #185 from jrfnl/feature/ghactions-tweak-php-versions
Browse files Browse the repository at this point in the history
GH Actions: update PHP versions in workflows
  • Loading branch information
paragonie-security authored Sep 10, 2024
2 parents 64f3265 + 0d047e6 commit bf95de2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -26,7 +26,7 @@ jobs:
run: composer self-update --1

- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"

- name: PHPUnit tests
run: vendor/bin/phpunit
Expand All @@ -37,13 +37,13 @@ jobs:
strategy:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']

continue-on-error: ${{ matrix.php-versions == '8.2' }}
continue-on-error: ${{ matrix.php-versions == '8.4' }}

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -56,13 +56,13 @@ jobs:
- name: Modernize dependencies
run: composer require --dev --no-update "phpunit/phpunit:>=4"

- name: Install Composer dependencies (PHP < 8.2)
if: ${{ matrix.php-versions != '8.2' }}
uses: "ramsey/composer-install@v2"
- name: Install Composer dependencies (PHP < 8.4)
if: ${{ matrix.php-versions != '8.4' }}
uses: "ramsey/composer-install@v3"

- name: Install Composer dependencies - ignore-platform-reqs (PHP 8.2)
if: ${{ matrix.php-versions == '8.2' }}
uses: "ramsey/composer-install@v2"
- name: Install Composer dependencies - ignore-platform-reqs (PHP 8.4)
if: ${{ matrix.php-versions == '8.4' }}
uses: "ramsey/composer-install@v3"
with:
composer-options: --ignore-platform-reqs

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
php-versions: ['7.4']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -22,7 +22,7 @@ jobs:
coverage: none

- name: Install Composer dependencies
uses: "ramsey/composer-install@v2"
uses: "ramsey/composer-install@v3"
with:
composer-options: --no-dev

Expand Down

0 comments on commit bf95de2

Please sign in to comment.