|
12 | 12 | strategy: |
13 | 13 | fail-fast: false |
14 | 14 | matrix: |
15 | | - php-version: ['7.2', '7.3', '7.4', '8.0', '8.1'] |
| 15 | + php-version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] |
16 | 16 |
|
17 | 17 | name: Test suite |
18 | 18 | runs-on: ubuntu-latest |
|
33 | 33 |
|
34 | 34 | - name: Install DDEV |
35 | 35 | env: |
36 | | - DDEV_VERSION: v1.21.2 |
| 36 | + DDEV_VERSION: v1.21.4 |
37 | 37 | run: | |
38 | 38 | # @see https://ddev.readthedocs.io/en/stable/#installationupgrade-script-linux-and-macos-armarm64-and-amd64-architectures |
39 | 39 | sudo apt-get -qq update |
@@ -315,3 +315,38 @@ jobs: |
315 | 315 | echo "There are pending tests: $PENDING_TESTS (KO)" |
316 | 316 | exit 1 |
317 | 317 | fi |
| 318 | + |
| 319 | +
|
| 320 | + - name: Run "stream mode with TLS auth and cURL and Redis" test |
| 321 | + run: | |
| 322 | + cd ${{ github.workspace }}/${{env.EXTENSION_PATH}} |
| 323 | + sed -i 's/\x27cache_system\x27 => \x27Constants::CACHE_SYSTEM_PHPFS\x27/\x27cache_system\x27 => \x27Constants::CACHE_SYSTEM_REDIS\x27/g' scripts/auto-prepend/settings.php |
| 324 | + cat scripts/auto-prepend/settings.php |
| 325 | + cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/ |
| 326 | + ./__scripts__/run-tests.sh ci "./__tests__/3-stream-mode.js" |
| 327 | + PENDING_TESTS=$(grep -oP '"numPendingTests":\K(.*),"numRuntimeErrorTestSuites"' .test-results.json | sed 's/,"numRuntimeErrorTestSuites"//g') |
| 328 | + if [[ $PENDING_TESTS == "0" ]] |
| 329 | + then |
| 330 | + echo "No pending tests: OK" |
| 331 | + else |
| 332 | + echo "There are pending tests: $PENDING_TESTS (KO)" |
| 333 | + exit 1 |
| 334 | + fi |
| 335 | + |
| 336 | +
|
| 337 | + - name: Run "stream mode with TLS auth and cURL and Memcached" test |
| 338 | + run: | |
| 339 | + cd ${{ github.workspace }}/${{env.EXTENSION_PATH}} |
| 340 | + sed -i 's/\x27cache_system\x27 => \x27Constants::CACHE_SYSTEM_REDIS\x27/\x27cache_system\x27 => \x27Constants::CACHE_SYSTEM_MEMCACHED\x27/g' scripts/auto-prepend/settings.php |
| 341 | + cat scripts/auto-prepend/settings.php |
| 342 | + cd ${{ github.workspace }}/${{env.EXTENSION_PATH}}/tests/end-to-end/ |
| 343 | + ./__scripts__/run-tests.sh ci "./__tests__/3-stream-mode.js" |
| 344 | + PENDING_TESTS=$(grep -oP '"numPendingTests":\K(.*),"numRuntimeErrorTestSuites"' .test-results.json | sed 's/,"numRuntimeErrorTestSuites"//g') |
| 345 | + if [[ $PENDING_TESTS == "0" ]] |
| 346 | + then |
| 347 | + echo "No pending tests: OK" |
| 348 | + else |
| 349 | + echo "There are pending tests: $PENDING_TESTS (KO)" |
| 350 | + exit 1 |
| 351 | + fi |
| 352 | + |
0 commit comments