Skip to content

Commit d40aa59

Browse files
committed
ci: thinkphp8.0.3 already supports psr2.0
1 parent 405ed65 commit d40aa59

File tree

2 files changed

+6
-31
lines changed

2 files changed

+6
-31
lines changed

.github/workflows/default.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,9 @@ jobs:
1919
strategy:
2020
fail-fast: true
2121
matrix:
22-
include:
23-
# ThinkPHP 6.*
24-
- php: 7.2
25-
thinkphp: 6.*
26-
- php: 7.4
27-
thinkphp: 6.*
28-
- php: 8.0
29-
thinkphp: 6.*
30-
- php: 8.1
31-
thinkphp: 6.*
22+
php: [ 7.2, 7.3, 7.4, 8.0, 8.1, 8.2 ]
3223

33-
# ThinkPHP 8.*
34-
- php: 8.0
35-
thinkphp: 8.*
36-
- php: 8.1
37-
thinkphp: 8.*
38-
- php: 8.2
39-
thinkphp: 8.*
40-
41-
name: ThinkPHP${{ matrix.thinkphp }}-PHP${{ matrix.php }}
24+
name: PHP${{ matrix.php }}
4225

4326
steps:
4427
- name: Checkout code
@@ -51,10 +34,6 @@ jobs:
5134
tools: composer:v2
5235
coverage: xdebug
5336

54-
- name: Pre composer
55-
if: matrix.thinkphp == '8.*'
56-
run: composer remove php-coveralls/php-coveralls --dev
57-
5837
- name: Validate composer.json and composer.lock
5938
run: composer validate
6039

@@ -63,22 +42,18 @@ jobs:
6342
uses: actions/cache@v3
6443
with:
6544
path: vendor
66-
key: ${{ runner.os }}-${{ matrix.php }}-${{ matrix.thinkphp }}-${{ hashFiles('**/composer.lock') }}
45+
key: ${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
6746
restore-keys: |
68-
${{ runner.os }}-${{ matrix.php }}-${{ matrix.thinkphp }}
47+
${{ runner.os }}-${{ matrix.php }}
6948
7049
- name: Install dependencies
7150
if: steps.composer-cache.outputs.cache-hit != 'true'
72-
run: |
73-
composer require topthink/framework:${{ matrix.thinkphp }} --no-update --no-interaction
74-
composer require topthink/think:${{ matrix.thinkphp }} --no-update --no-interaction --dev
75-
composer install --prefer-dist --no-progress --no-suggest
51+
run: composer install --prefer-dist --no-progress --no-suggest
7652

7753
- name: Run test suite
7854
run: ./vendor/bin/phpunit
7955

8056
- name: Run Coveralls
81-
if: matrix.thinkphp != '8.*'
8257
env:
8358
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8459
COVERALLS_PARALLEL: true

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"license": "Apache-2.0",
2222
"require": {
2323
"casbin/casbin": "~3.0",
24-
"topthink/framework": "~6.0|~8.0",
24+
"topthink/framework": "~6.0|^8.0.3",
2525
"topthink/think-migration": "^3.1.0",
2626
"casbin/psr3-bridge": "^1.1"
2727
},

0 commit comments

Comments
 (0)