Skip to content

Commit 858e68c

Browse files
committed
Update CI workflow to use PHP Docker containers and remove the blocked setup-php action.
1 parent 727bcf2 commit 858e68c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
apt-get install -y git unzip libzip-dev libxml2-dev
2929
docker-php-ext-install xml zip
3030
if [ "${{ matrix.php-version }}" = "8.3" ]; then
31-
pecl install xdebug
32-
docker-php-ext-enable xdebug
31+
pecl install xdebug || echo "Warning: xdebug install failed, coverage may not work"
32+
docker-php-ext-enable xdebug || true
3333
fi
3434
php -v
3535
php -m
@@ -48,7 +48,7 @@ jobs:
4848
id: composer-cache
4949
uses: actions/cache@v4
5050
with:
51-
path: vendor
51+
path: /root/.composer/cache
5252
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
5353
restore-keys: |
5454
${{ runner.os }}-php-${{ matrix.php-version }}-
@@ -67,7 +67,8 @@ jobs:
6767
if: matrix.php-version == '8.3'
6868
env:
6969
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
70+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7071
run: |
7172
composer global require php-coveralls/php-coveralls
72-
export PATH="$HOME/.composer/vendor/bin:$PATH"
73+
export PATH="/root/.composer/vendor/bin:$PATH"
7374
php-coveralls --coverage_clover=build/logs/clover.xml --json_path=build/logs/coveralls-upload.json -v

0 commit comments

Comments
 (0)