From 430af0b4005e84c55fedbc88ecd98fc1f29b3e4b Mon Sep 17 00:00:00 2001 From: someniatko Date: Tue, 2 May 2023 12:37:26 +0300 Subject: [PATCH] claim PHP 8.2 support --- .github/workflows/ci.yml | 15 ++++++++++++++- composer.json | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e30a202..8c597a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ on: [ push, pull_request ] jobs: - test: + test-74: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 @@ -20,3 +20,16 @@ jobs: - name: psalm static analysis run: php vendor/bin/psalm + test-82: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: shivammathur/setup-php@v2 + with: + php-version: 8.2 + tools: composer:v2 + coverage: none + - run: composer install -o + + - name: unit tests + run: php vendor/bin/phpunit diff --git a/composer.json b/composer.json index c63dc17..99270e3 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "license": "MIT", "description": "Functional-ish generic Result type: either Success or Error", "require": { - "php": "7.4.* || 8.0.* || 8.1.*" + "php": "7.4.* || 8.0.* || 8.1.* || 8.2.*" }, "require-dev": { "phpunit/phpunit": "^9.5",