From 92f34e9061e96155bd4d11d61d68d2244e9b47aa Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 11 May 2024 14:24:16 +0800 Subject: [PATCH] add dev-php test --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 74394e26..e179980f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -111,6 +111,7 @@ jobs: - "8.1" - "8.2" - "8.3" + - "dev" os: - ubuntu-latest - macos-latest @@ -159,6 +160,7 @@ jobs: run: bin/spc doctor --auto-fix - name: "Run Build Tests (download)" + if: matrix.php != 'dev' uses: nick-fields/retry@v3 with: timeout_minutes: 10 @@ -167,5 +169,15 @@ jobs: command: | bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" --with-php=${{ matrix.php }} --ignore-cache-sources=php-src --debug --retry=3 + - name: "Run Build Tests (download-dev)" + if: matrix.php == 'dev' + uses: nick-fields/retry@v3 + with: + timeout_minutes: 10 + max_attempts: 3 + retry_on: error + command: | + bin/spc download --for-extensions="$(php src/globals/test-extensions.php extensions)" --for-libs="$(php src/globals/test-extensions.php libs)" -U "php-src:https://github.com/php/php-src/archive/refs/heads/master.zip" --ignore-cache-sources=php-src --debug --retry=3 + - name: "Run Build Tests (build)" run: bin/spc build "$(php src/globals/test-extensions.php extensions)" $(php src/globals/test-extensions.php zts) --with-libs="$(php src/globals/test-extensions.php libs)" --build-cli --build-micro --build-fpm --debug