diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..02aae24 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.4' + extensions: mbstring + coverage: none + tools: composer:v2 + - name: Validate composer.json + run: composer validate --no-check-publish --no-check-lock + - name: Install dependencies + run: composer update --prefer-dist --no-progress --no-interaction + - name: Run tests + run: vendor/bin/phpunit --no-coverage diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33764c1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: php -php: -- '7.3' -- '7.4' - -install: composer install -vvv - -script: vendor/bin/phpunit diff --git a/README.md b/README.md index f94a2f3..414e088 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ FastD Middleware 是一个实现了 PSR-15 HTTP 服务器中间件标准的轻 ## 环境依赖说明 -* PHP >= 8.2 +* PHP >= 8.4 * PSR-7 HTTP 消息接口实现 * PSR-15 HTTP 服务器中间件标准 diff --git a/composer.json b/composer.json index 42dcd5b..36ac32e 100644 --- a/composer.json +++ b/composer.json @@ -8,7 +8,7 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "fastd/http": "^8.0", "psr/http-server-middleware": "*" },