Skip to content

troubleshoot php 8.0 github segFault #469

troubleshoot php 8.0 github segFault

troubleshoot php 8.0 github segFault #469

Workflow file for this run

name: PHPUnit
on: [push, pull_request]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-version: ['8.0']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
env:
MYSQL_DATABASE: test
MYSQL_USERNAME: root
MYSQL_PASSWORD: root
steps:
- name: Set up MySQL
continue-on-error: true
run: |
sudo /etc/init.d/mysql start --default-auth=mysql_native_password
mysql -e 'CREATE DATABASE ${{ env.MYSQL_DATABASE }};' -u${{ env.MYSQL_USERNAME }} -p${{ env.MYSQL_PASSWORD }}
mysqld --version
- name: Checkout
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action
with:
php-version: ${{ matrix.php-version }}
extensions: iconv, intl, mysqli, oauth
ini-values: error_reporting=-1, memory_limit=768M, post_max_size=256M, xdebug.mode="coverage,debug,develop"
coverage: xdebug #optional
- name: Check PHP Version
run: |
php -v
php -r 'echo "curl version: " . curl_version()["version"] . "\n";'
- name: Validate composer.json and composer.lock
run: composer validate --strict
- name: Cache composer packages
uses: actions/cache@v4
id: composer-cache
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: |
composer --version
composer install --prefer-dist --no-progress
- name: Unit test
# run: composer run test
run: vendor/bin/phpunit tests/Container
- name: Publish code coverage
if: ${{ matrix.php-version == '8.2' && github.ref_name == 'master' }}
uses: paambaati/codeclimate-action@v8.0.0
continue-on-error: true
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
debug: false
coverageCommand: vendor/bin/phpunit --coverage-clover coverage/clover.xml
coverageLocations: coverage/clover.xml:clover
- name: Coverage summary
if: ${{ matrix.php-version == '8.2' && github.ref_name == 'master' }}
continue-on-error: true
run: php -f vendor/bdk/devutil/src/coverageChecker.php -- coverage/clover.xml