File tree Expand file tree Collapse file tree 2 files changed +15
-24
lines changed
Expand file tree Collapse file tree 2 files changed +15
-24
lines changed Original file line number Diff line number Diff line change 77 tags :
88
99jobs :
10- mutation :
11- runs-on : ${{ matrix.os }}
12-
13- strategy :
14- matrix :
15- os :
16- - ubuntu-latest
17-
18- php :
19- - " 8.2"
20- - " 8.3"
21- steps :
22- - name : Setup PHP with required extensions
23- uses : shivammathur/setup-php@v2
24- with :
25- extensions : redis
2610 ci :
2711 uses :
laminas/workflow-continuous-integration/.github/workflows/[email protected] 28-
Original file line number Diff line number Diff line change 1- JOB=$3
2- PHP_VERSION=$4
3- COMMAND=$( echo " ${JOB} " | jq -r ' .command' )
1+ #! /usr/bin/env bash
42
5- echo " Running pre-run $COMMAND "
3+ set -e
64
7- apt-get install -y php-dev php-pear
8- pecl install redis
9- echo " extension=redis.so" | sudo tee -a /etc/php/${PHP_VERSION} /cli/php.ini
5+ PHP_VERSION=$( php -r ' echo PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION;' )
6+
7+ if [[ " $PHP_VERSION " == " 8.2" ]]; then
8+ pecl install swoole-5.0.3
9+ elif [[ " $PHP_VERSION " == " 8.3" ]]; then
10+ pecl install swoole-5.1.0
11+ else
12+
13+ echo " Unsupported PHP version: $PHP_VERSION "
14+ exit 1
15+ fi
16+
17+ echo " extension=swoole.so" >> " $( php -r ' echo php_ini_loaded_file();' ) "
You can’t perform that action at this time.
0 commit comments