From 724441b4c99763e2825feaeaa96d187eb1d5d32a Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 16:12:17 +0800 Subject: [PATCH 01/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 4b89fe2..fff474f 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -19,6 +19,7 @@ jobs: - name: Install dependencies run: | # 安装依赖 + composer global show phpunit/phpunit composer install --no-interaction --prefer-dist - name: Run PHPUnit tests From 195b67e17b095c0e9bf537ef81f6bf829d0bdac2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 16:13:46 +0800 Subject: [PATCH 02/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20tests/Test.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Test.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Test.php b/tests/Test.php index 5a55321..d5fca1b 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -2,6 +2,7 @@ // 手动加载类文件 require_once __DIR__ . '/../src/libs/MyWebSocketHandler.php'; +require_once __DIR__ . '/root/.composer/vendor/autoload.php'; use PHPUnit\Framework\TestCase; use App\MyWebSocketHandler; From 2ae8a770026f9f570ef38f7e4391020a617f82d4 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 16:14:34 +0800 Subject: [PATCH 03/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20tests/Test.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Test.php b/tests/Test.php index d5fca1b..0006a44 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -2,7 +2,7 @@ // 手动加载类文件 require_once __DIR__ . '/../src/libs/MyWebSocketHandler.php'; -require_once __DIR__ . '/root/.composer/vendor/autoload.php'; +require_once '/root/.composer/vendor/autoload.php'; use PHPUnit\Framework\TestCase; use App\MyWebSocketHandler; From a3033abd951dda82852319737767c610f4f5998b Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 16:17:18 +0800 Subject: [PATCH 04/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20tests/Test.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Test.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/Test.php b/tests/Test.php index 0006a44..40bf7d0 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -1,15 +1,16 @@ Date: Tue, 3 Jun 2025 16:43:02 +0800 Subject: [PATCH 05/15] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20test-bootstrap.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-bootstrap.php | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-bootstrap.php diff --git a/test-bootstrap.php b/test-bootstrap.php new file mode 100644 index 0000000..cc57313 --- /dev/null +++ b/test-bootstrap.php @@ -0,0 +1,10 @@ + Date: Tue, 3 Jun 2025 16:43:37 +0800 Subject: [PATCH 06/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20phpunit.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 9c81ab2..9d8193b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,5 @@ - From 2a937bae69c23de6d99df05a77544a77533f8f4e Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 17:08:25 +0800 Subject: [PATCH 07/15] =?UTF-8?q?=E5=88=A0=E9=99=A4=20test-bootstrap.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-bootstrap.php | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 test-bootstrap.php diff --git a/test-bootstrap.php b/test-bootstrap.php deleted file mode 100644 index cc57313..0000000 --- a/test-bootstrap.php +++ /dev/null @@ -1,10 +0,0 @@ - Date: Tue, 3 Jun 2025 17:08:44 +0800 Subject: [PATCH 08/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20phpunit.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit.xml b/phpunit.xml index 9d8193b..344b975 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,5 @@ - From fa7390aedb0afd75fefb17d2c0d2f2da0e9d1e90 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 17:09:14 +0800 Subject: [PATCH 09/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20tests/Test.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Test.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/Test.php b/tests/Test.php index 40bf7d0..59e4037 100644 --- a/tests/Test.php +++ b/tests/Test.php @@ -1,17 +1,13 @@ Date: Tue, 3 Jun 2025 18:18:05 +0800 Subject: [PATCH 10/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index fff474f..6ae6922 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -22,6 +22,11 @@ jobs: composer global show phpunit/phpunit composer install --no-interaction --prefer-dist + - name: Delay for 20 seconds before running tests + run: | + echo "⏳ Waiting for 60 seconds before running PHPUnit tests..." + sleep 60 + - name: Run PHPUnit tests run: | XDEBUG_MODE=coverage vendor/bin/phpunit --configuration phpunit.xml --verbose From 7746d1e3bf48a3b1ee84cadaa8bbe317d021b4e2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 19:03:16 +0800 Subject: [PATCH 11/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 6ae6922..17aaff6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -24,8 +24,8 @@ jobs: - name: Delay for 20 seconds before running tests run: | - echo "⏳ Waiting for 60 seconds before running PHPUnit tests..." - sleep 60 + echo "⏳ Waiting for 600 seconds before running PHPUnit tests..." + sleep 600 - name: Run PHPUnit tests run: | From 4e12ce3bdbf18612cde6daedd905fb9e5a68915d Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 19:06:42 +0800 Subject: [PATCH 12/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 17aaff6..4796661 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -22,10 +22,10 @@ jobs: composer global show phpunit/phpunit composer install --no-interaction --prefer-dist - - name: Delay for 20 seconds before running tests + - name: Delay for 2 seconds before running tests run: | - echo "⏳ Waiting for 600 seconds before running PHPUnit tests..." - sleep 600 + echo "⏳ Waiting for 2 seconds before running PHPUnit tests..." + sleep 2 - name: Run PHPUnit tests run: | From 0b67a89d09b0b979edf4185c252044ed0054bac0 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 19:07:33 +0800 Subject: [PATCH 13/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 4796661..234127e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -22,10 +22,10 @@ jobs: composer global show phpunit/phpunit composer install --no-interaction --prefer-dist - - name: Delay for 2 seconds before running tests + - name: Delay for 200 seconds before running tests run: | - echo "⏳ Waiting for 2 seconds before running PHPUnit tests..." - sleep 2 + echo "⏳ Waiting for 200 seconds before running PHPUnit tests..." + sleep 200 - name: Run PHPUnit tests run: | From 84c7d7ad841f060ab9803d078353c8dfedcdaf5d Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 19:23:10 +0800 Subject: [PATCH 14/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 234127e..1bd07d6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -22,10 +22,11 @@ jobs: composer global show phpunit/phpunit composer install --no-interaction --prefer-dist - - name: Delay for 200 seconds before running tests + - name: Delay for 2 seconds before running tests run: | - echo "⏳ Waiting for 200 seconds before running PHPUnit tests..." - sleep 200 + composer require workerman/workerman + echo "⏳ Waiting for 2 seconds before running PHPUnit tests..." + sleep 2 - name: Run PHPUnit tests run: | From f46d6c8d837751aee25d6a60b225a68aafdb08e2 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 3 Jun 2025 20:59:23 +0800 Subject: [PATCH 15/15] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/tes?= =?UTF-8?q?t.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1bd07d6..5fe7923 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -21,12 +21,7 @@ jobs: # 安装依赖 composer global show phpunit/phpunit composer install --no-interaction --prefer-dist - - - name: Delay for 2 seconds before running tests - run: | composer require workerman/workerman - echo "⏳ Waiting for 2 seconds before running PHPUnit tests..." - sleep 2 - name: Run PHPUnit tests run: |