提交的内容

This commit is contained in:
2025-05-12 15:45:02 +08:00
parent 629c4750da
commit b48c692775
3043 changed files with 34732 additions and 60810 deletions

4
vendor/topthink/framework/.github/workflows/build.yml vendored Executable file → Normal file
View File

@ -3,7 +3,7 @@ name: build
on:
push:
branches:
- "8.0"
- "8.x"
pull_request:
schedule:
- cron: "0 0 * * *"
@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
php: [8.0, 8.1, 8.2, 8.3, 8.4]
name: PHP ${{ matrix.php }}

View File

@ -0,0 +1,31 @@
name: PHP CS Fixer
on:
pull_request:
branches:
- "8.x"
paths:
- '**.php'
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 10
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
tools: cs2pr,php-cs-fixer
- name: Run PHP CS Fixer
run: |
changed_files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }} -- '*.php')
for file in $changed_files; do
php-cs-fixer fix "$file" --dry-run --diff --rules=@PER-CS2.0 --format=checkstyle | cs2pr
done