Skip to content
Closed
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
24 changes: 20 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ concurrency:
cancel-in-progress: false

env:
minimum_supported_php_version: "8.2"
minimum_supported_php_version: "8.1"
package_extensions: none, mbstring, curl, ctype, tokenizer, mongodb, xml, pdo, fileinfo, dom, xmlwriter, simplexml, sqlite3, pdo_sqlite, posix, redis
agent_extensions: none, mbstring, curl, ctype, dom, simplexml, tokenizer, xml, xmlwriter

Expand Down Expand Up @@ -43,6 +43,12 @@ jobs:
key: ${{ runner.os }}-package-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-package-composer

# We want to run static analysis against the lowest PHP version we can, however
# Pint is conflicting. We will remove it so we can successfully install dependencies
# in PHP 8.1
- name: Remove Pint
run: composer remove laravel/pint --dev --no-update

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

Expand Down Expand Up @@ -87,6 +93,12 @@ jobs:
key: ${{ runner.os }}-agent-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-agent-composer

# We want to run static analysis against the lowest PHP version we can, however
# Pint is conflicting. We will remove it so we can successfully install dependencies
# in PHP 8.1
- name: Remove Pint
run: composer remove laravel/pint --dev --no-update

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress

Expand Down Expand Up @@ -116,10 +128,10 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.head_ref }}

- name: Setup PHP ${{ env.minimum_supported_php_version }} and tooling
- name: Setup PHP 8.4 and tooling
uses: shivammathur/setup-php@v2
with:
php-version: ${{ env.minimum_supported_php_version }}
php-version: 8.4
extensions: ${{ env.package_extensions }}
ini-values: error_reporting=E_ALL
tools: composer:v2
Expand Down Expand Up @@ -233,6 +245,10 @@ jobs:
php: [8.2, 8.3, 8.4]
laravel: [10, 11, 12]
prefer-lowest: ['0', '1']
include:
- php: 8.1
laravel: 10
prefer-lowest: ['0', '1']

name: Test package [PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}]

Expand Down Expand Up @@ -281,7 +297,7 @@ jobs:

strategy:
matrix:
php: [8.2, 8.3, 8.4]
php: [8.1, 8.2, 8.3, 8.4]

name: Test agent [PHP ${{ matrix.php }}]

Expand Down
2 changes: 1 addition & 1 deletion agent/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.1",
"ext-zlib": "*",
"psr/http-message": "^1.1",
"react/event-loop": "^1.5",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^8.2",
"php": "^8.1",
"ext-zlib": "*",
"guzzlehttp/promises": "^2.0",
"laravel/framework": "^10.0|^11.0|^12.0",
Expand Down
Loading