Skip to content

Commit 129ef8b

Browse files
committed
GH Actions: updates for box 4.x
The box project has released Box 4.0.0 (and 4.0.1). Most notable changes: * New minimum PHP version of PHP 8.1. * The sodium extension has become a requirement. * The requirements checker now has a minimum PHP version of PHP 7.2.4. We already disabled the requirements checker previously due to PHP 8.1 incompatibilities (PR #70), I've not added a comment to document not to turn it on again as that would make the Parallel Lint PHAR incompatible with PHP < 7.2. Refs: https://github.com/box-project/box/releases/tag/4.0.0
1 parent 36ab8b4 commit 129ef8b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Diff for: .github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
3030
with:
31-
php-version: 8.0
32-
extensions: exif, phar, openssl
31+
php-version: 8.1
32+
extensions: exif, phar, openssl, sodium
3333
coverage: none
3434
ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1
3535
# Autoload files generated with Composer 2.3 are not compatible with PHP < 7.0.
@@ -40,6 +40,8 @@ jobs:
4040
with:
4141
composer-options: "--no-dev"
4242

43+
# Note: do NOT turn on the requirement checker in the box config as it is no longer
44+
# compatible with PHP < 7.2.
4345
- name: Install Box
4446
run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd
4547

Diff for: .github/workflows/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
- name: Setup PHP
5252
uses: shivammathur/setup-php@v2
5353
with:
54-
php-version: 8.0
55-
extensions: exif, phar, openssl
54+
php-version: 8.1
55+
extensions: exif, phar, openssl, sodium
5656
coverage: none
5757
ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1
5858
# Autoload files generated with Composer 2.3 are not compatible with PHP < 7.0.
@@ -63,6 +63,8 @@ jobs:
6363
with:
6464
composer-options: "--no-dev"
6565

66+
# Note: do NOT turn on the requirement checker in the box config as it is no longer
67+
# compatible with PHP < 7.2.
6668
- name: Install Box
6769
run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd
6870

0 commit comments

Comments
 (0)