Skip to content

Commit

Permalink
update: 更新测试
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed May 15, 2024
1 parent 731bd84 commit 467b7a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ jobs:
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
prefer-lowest: [false]
experimental: [false]
include:
- php: 8.2
prefer-lowest: false
experimental: true
# include:
# - php: 8.4
# prefer-lowest: false
# experimental: true
services:
mysql:
image: mysql:8.0
Expand All @@ -31,7 +33,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -55,7 +57,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache vendor
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: composer-cache
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
extensions: pdo, pdo_mysql, mbstring #optional, setup extensions
coverage: pcov #optional, setup coverage driver
tools: phpunit:9
Expand All @@ -41,7 +41,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache vendor
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: composer-cache
with:
Expand All @@ -61,9 +61,9 @@ jobs:
TESTS_DB_MYSQL_DATABASE: testing

- name: Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
file: ./coverage.xml #optional
flags: unittests #optional
name: codecov-umbrella #optional
file: ./coverage.xml
flags: unittests
name: think-phinx

0 comments on commit 467b7a6

Please sign in to comment.