From fa43b42ab936f5fbd6684f6469d16f0ab409c0d8 Mon Sep 17 00:00:00 2001 From: overtrue Date: Thu, 18 Apr 2024 16:21:47 +0800 Subject: [PATCH] chore: php 8 required --- .github/workflows/tests.yml | 38 ++++++++++++++++++------------------- composer.json | 6 +++--- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 263a7d0..1bcca0a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,24 +1,24 @@ name: Tests on: - push: - branches: [ master ] - pull_request: + push: + branches: [master] + pull_request: jobs: - phpunit: - strategy: - matrix: - php_version: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup PHP environment - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php_version }} - coverage: xdebug - - name: Install dependencies - run: composer install - - name: PHPUnit check - run: ./vendor/bin/phpunit --coverage-text + phpunit: + strategy: + matrix: + php_version: [8.0, 8.1, 8.2, 8.3] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup PHP environment + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php_version }} + coverage: xdebug + - name: Install dependencies + run: composer install + - name: PHPUnit check + run: ./vendor/bin/phpunit --coverage-text diff --git a/composer.json b/composer.json index a80b812..0197280 100644 --- a/composer.json +++ b/composer.json @@ -4,12 +4,12 @@ "type": "library", "require": { "guzzlehttp/guzzle": "^6.2 || ^7.0", - "php": ">=5.6", + "php": ">=8.0", "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^5.7 || ^7.5 || ^8.5.19 || ^9.5.8", - "mockery/mockery": "~1.3.3 || ^1.4.2", + "phpunit/phpunit": "^9.5.8", + "mockery/mockery": "^1.4.2", "jetbrains/phpstorm-attributes": "^1.0", "friendsofphp/php-cs-fixer": "^3.54" },