Skip to content

Commit 6393dd8

Browse files
committed
update github action for run tests
1 parent 3386a4c commit 6393dd8

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: ${{ matrix.php}}
33-
tools: pecl, php-cs-fixer, phpunit
33+
tools: pecl, php-cs-fixer, phpunit:${{ matrix.phpunit }}
3434
extensions: mbstring, dom, fileinfo, mysql, openssl, igbinary, redis # , swoole-4.4.19 #optional, setup extensions
3535
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration
3636
coverage: none #optional, setup coverage driver: xdebug, none
@@ -39,10 +39,11 @@ jobs:
3939
run: env
4040

4141
- name: Install dependencies
42-
run: composer install --no-progress --no-suggest
42+
run: composer install --no-progress
4343

4444
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
4545
# Docs: https://getcomposer.org/doc/articles/scripts.md
4646

47-
- name: Run test suite
48-
run: composer run test
47+
- name: Run unit tests
48+
# run: composer run test
49+
run: phpunit -vv

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: shivammathur/setup-php@v2
3232
with:
3333
php-version: ${{ matrix.php}}
34-
tools: pecl, php-cs-fixer, phpunit
34+
tools: pecl, php-cs-fixer
3535
extensions: mbstring, dom, fileinfo, mysql, openssl # , swoole-4.4.19 #optional, setup extensions
3636
ini-values: post_max_size=56M, short_open_tag=On #optional, setup php.ini configuration
3737
coverage: none #optional, setup coverage driver: xdebug, none
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
tag1=${GITHUB_REF#refs/*/}
4242
echo "release tag: ${tag1}"
43-
composer install --no-progress --no-suggest
43+
composer install --no-progress
4444
4545
# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
4646
# Docs: https://getcomposer.org/doc/articles/scripts.md

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
{
1616
"name": "inhere",
1717
"email": "[email protected]",
18-
"homepage": "http://www.yzone.net/"
18+
"homepage": "http://github.com/inhere"
1919
}
2020
],
2121
"require": {

test/Util/LineParserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
use PHPUnit\Framework\TestCase;
1414
use function count;
1515

16+
/**
17+
* Class LineParserTest
18+
* @package Toolkit\CliTest\Util
19+
*/
1620
class LineParserTest extends TestCase
1721
{
1822
public function testParse(): void

0 commit comments

Comments
 (0)