From 3ecc66347117d08866a9144b908ac4a2994bbea2 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Thu, 15 Aug 2024 21:53:48 +0200 Subject: [PATCH] add php8.3 to drone (#20) --- .drone.jsonnet | 3 ++- .drone.yml | 22 +++++++++++++++++++++- Tests/Cipher/CryptoTest.php | 2 +- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.drone.jsonnet b/.drone.jsonnet index e13974c7..3e25ef82 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -25,7 +25,7 @@ local composer(phpversion, params) = { local phpunit(phpversion) = { name: "PHPUnit", image: "joomlaprojects/docker-images:php" + phpversion, - [if phpversion == "8.3" then "failure"]: "ignore", + [if phpversion == "8.4" then "failure"]: "ignore", commands: ["vendor/bin/phpunit"] }; @@ -103,4 +103,5 @@ local pipeline(name, phpversion, params) = { pipeline("8.1 lowest", "8.1", "--prefer-stable --prefer-lowest"), pipeline("8.1", "8.1", "--prefer-stable"), pipeline("8.2", "8.2", "--prefer-stable"), + pipeline("8.3", "8.3", "--prefer-stable"), ] diff --git a/.drone.yml b/.drone.yml index b6ca8afe..5f802d88 100644 --- a/.drone.yml +++ b/.drone.yml @@ -109,7 +109,27 @@ volumes: path: /tmp/composer-cache name: composer-cache --- +kind: pipeline +name: PHP 8.3 +steps: +- commands: + - php -v + - composer update --prefer-stable + image: joomlaprojects/docker-images:php8.3 + name: composer + volumes: + - name: composer-cache + path: /tmp/composer-cache +- commands: + - vendor/bin/phpunit + image: joomlaprojects/docker-images:php8.3 + name: PHPUnit +volumes: +- host: + path: /tmp/composer-cache + name: composer-cache +--- kind: signature -hmac: f916a6c4e38841b83b995a5603965f7884d254cc0d03f7d220b11b3c365ceaab +hmac: e19a403dcc39e04150be1881eee1886f1104bffde75ee9502ded537d6587e9bc ... diff --git a/Tests/Cipher/CryptoTest.php b/Tests/Cipher/CryptoTest.php index 6f78a38b..de6ab003 100644 --- a/Tests/Cipher/CryptoTest.php +++ b/Tests/Cipher/CryptoTest.php @@ -9,9 +9,9 @@ use Defuse\Crypto\Key as DefuseKey; use Joomla\Crypt\Cipher\Crypto as CryptoCipher; +use Joomla\Crypt\Key; use PHPUnit\Framework\TestCase; use Symfony\Polyfill\Util\Binary; -use Joomla\Crypt\Key; /** * Test class for \Joomla\Crypt\Cipher\Crypto.