From e73c022ad25e9620f662deca90b8bd4eb1000f29 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 27 Jun 2022 07:37:43 +0200 Subject: [PATCH] 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 --- .github/workflows/release.yml | 6 ++++-- .github/workflows/test.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dabbd0..11079fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,8 +28,8 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.0 - extensions: exif, phar, openssl + php-version: 8.1 + extensions: exif, phar, openssl, sodium coverage: none ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1 # Autoload files generated with Composer 2.3 are not compatible with PHP < 7.0. @@ -40,6 +40,8 @@ jobs: with: composer-options: "--no-dev" + # Note: do NOT turn on the requirement checker in the box config as it is no longer + # compatible with PHP < 7.2. - name: Install Box run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0f8511..0e16116 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,8 +51,8 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.0 - extensions: exif, phar, openssl + php-version: 8.1 + extensions: exif, phar, openssl, sodium coverage: none ini-values: phar.readonly=Off, error_reporting=-1, display_errors=On, zend.assertions=1 # Autoload files generated with Composer 2.3 are not compatible with PHP < 7.0. @@ -63,6 +63,8 @@ jobs: with: composer-options: "--no-dev" + # Note: do NOT turn on the requirement checker in the box config as it is no longer + # compatible with PHP < 7.2. - name: Install Box run: wget https://github.com/humbug/box/releases/latest/download/box.phar -O box.phar && chmod 0755 box.phar && pwd