From 6121fde58f97bb669ac4b549b574ccd9531e1814 Mon Sep 17 00:00:00 2001 From: Koala Yeung Date: Thu, 1 Feb 2024 21:27:22 +0800 Subject: [PATCH] test --- .github/workflows/ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a000c2b..60448c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,7 @@ jobs: - '1.21' env: # For test to correctly locate the OS's php-fpm - TEST_PHPFPM_PATH: /usr/sbin/php-fpm-test + TEST_PHPFPM_PATH: /usr/sbin/php-fpm # For backward compatibility GO111MODULE: on steps: @@ -35,15 +35,15 @@ jobs: uses: actions/checkout@v4 - name: Install Tools for Tests run: sudo apt-get install -y php-fpm python3 python3-venv - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: '8.2' # extensions: imagick, swoole + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 - name: Setup Node modules run: | cd ./example/nodejs @@ -67,3 +67,14 @@ jobs: go mod download -x || go mod download - name: Run tests run: go test -race ./... + - name: Environment Info + if: failure() + run: | + php -v + php -m + node -v + npm -v + python3 -V + python3 -m pip list + go version + go env