浏览代码

Fix tests on lowest

shalvah 3 年之前
父节点
当前提交
4570c2aa9f
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 5 2
      .github/workflows/run-tests.yml
  2. 2 3
      composer.lowest.json

+ 5 - 2
.github/workflows/run-tests.yml

@@ -31,7 +31,6 @@ jobs:
           extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
           coverage: xdebug
 
-
       - name: Install dependencies
         if: ${{ matrix.deps == 'highest' }}
         run: composer update
@@ -47,7 +46,11 @@ jobs:
 
       - name: Execute tests (Laravel/Lumen)
         run: composer test-ci
-        if: ${{ matrix.deps != 'dingo' }}
+        if: ${{ matrix.deps == 'highest' }}
+
+      - name: Execute tests (Lowest)
+        run: COMPOSER=composer.lowest.json composer test-ci
+        if: ${{ matrix.deps == 'lowest' }}
 
       - name: Execute tests (Dingo)
         run: COMPOSER=composer.dingo.json composer test-ci

+ 2 - 3
composer.lowest.json

@@ -45,7 +45,6 @@
         "league/fractal": "^0.19.0",
         "nikic/fast-route": "^1.3",
         "orchestra/testbench": "^4.0|^5.0",
-        "pestphp/pest": "^0.3",
         "phpstan/phpstan": "^0.12.90",
         "phpunit/phpunit": "^9.0",
         "symfony/css-selector": "^5.3",
@@ -67,8 +66,8 @@
     },
     "scripts": {
         "lint": "phpstan analyse -c ./phpstan.neon src camel --memory-limit 1G",
-        "test": "pest --stop-on-failure --exclude-group dingo --coverage --colors",
-        "test-ci": "pest --exclude-group dingo --coverage --min=80",
+        "test": "phpunit --stop-on-failure --exclude-group dingo",
+        "test-ci": "phpunit --exclude-group dingo",
         "test-parallel": "paratest -p16 --stop-on-failure --exclude-group dingo",
         "test-parallel-ci": "paratest -p16 --exclude-group dingo"
     },