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/README.md b/README.md index f721547..ffa838f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ FastD Event 是一个轻量级、高性能的 PSR-14 兼容事件调度器实现 ## 环境要求 -- PHP >= 8.2 +- PHP >= 8.4 ## 特性 diff --git a/composer.json b/composer.json index 94350d9..f22e9ea 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": ">=8.2", + "php": ">=8.4", "psr/event-dispatcher": "^1.0" }, "require-dev": {