Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FastD Middleware 是一个实现了 PSR-15 HTTP 服务器中间件标准的轻

## 环境依赖说明

* PHP >= 8.2
* PHP >= 8.4
* PSR-7 HTTP 消息接口实现
* PSR-15 HTTP 服务器中间件标准

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
],
"require": {
"php": ">=8.2",
"php": ">=8.4",
"fastd/http": "^8.0",
"psr/http-server-middleware": "*"
},
Expand Down
Loading