Skip to content
Merged
Show file tree
Hide file tree
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
25 changes: 6 additions & 19 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
# Use PHP 8.3 until psalm resolves issues with 8.4
# https://github.com/vimeo/psalm/issues/11107
php-version: "8.3"
php-version: "8.4"
coverage: "none"

- name: "Install dependencies (Composer)"
Expand All @@ -53,9 +51,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
# Use PHP 8.3 until psalm resolves issues with 8.4
# https://github.com/vimeo/psalm/issues/11107
php-version: "8.3"
php-version: "8.4"
coverage: "none"

- name: "Install dependencies (Composer)"
Expand All @@ -82,9 +78,7 @@ jobs:
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
# Use PHP 8.3 until psalm resolves issues with 8.4
# https://github.com/vimeo/psalm/issues/11107
php-version: "8.3"
php-version: "8.4"
extensions: bcmath, gmp, sodium, uuid
coverage: "xdebug" # Enable Xdebug for code coverage
ini-values: "memory_limit=-1"
Expand All @@ -95,7 +89,7 @@ jobs:
dependency-versions: "${{ matrix.dependencies }}"

- name: "Run unit tests (PHPUnit)"
run: "./vendor/bin/phpunit --verbose --colors=always --coverage-text --coverage-clover build/logs/clover.xml"
run: "./vendor/bin/phpunit --colors=always --coverage-text --coverage-clover build/logs/clover.xml"

- name: "Publish coverage report to Codecov"
uses: "codecov/codecov-action@v5"
Expand All @@ -109,22 +103,15 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
# - "8.4"
- "8.4"
operating-system:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
include:
# Keep the locked version by default
- dependency-versions: "locked"
# For PHP 8.0, installing with --prefer-highest to use latest libraries.
- php-version: "8.0"
dependency-versions: "highest"

steps:
- name: "Configure Git (for Windows)"
Expand Down Expand Up @@ -158,5 +145,5 @@ jobs:

# Run Tests
- name: "Run unit tests (PHPUnit)"
run: "./vendor/bin/phpunit --verbose --colors=always --no-coverage"
run: "./vendor/bin/phpunit --colors=always --no-coverage"

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"type": "library",
"require": {
"php": ">=8.1 <=8.4.5",
"php": ">=8.3 <8.5",
"ext-json": "*",
"ext-openssl": "*",
"ext-curl": "*",
Expand Down
Loading