diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf9807c..365d96e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,10 @@ permissions: jobs: test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php-version: ['8.1', '8.2', '8.3', '8.4'] steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,7 +24,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.4' + php-version: ${{ matrix.php-version }} extensions: json, openssl, simplexml coverage: none diff --git a/README.md b/README.md index 9086729..089a75c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ WeChatDeveloper 是一个面向 **微信** 与 **支付宝** 的轻量 PHP SDK ## 环境要求 -- PHP `>= 8.4` +- PHP `>= 8.1` - `ext-json` - `ext-openssl` - `ext-simplexml` diff --git a/composer.json b/composer.json index fa48d6c..9cc9d7c 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ } ], "require": { - "php": ">=8.4", + "php": ">=8.1", "ext-json": "*", "ext-openssl": "*", "ext-simplexml": "*", @@ -26,7 +26,7 @@ "psr/simple-cache": "^3.0" }, "require-dev": { - "phpunit/phpunit": "^11.5" + "phpunit/phpunit": "^10.5 || ^11.5" }, "autoload": { "psr-4": {