Fix a crash if the isPassedByReference want to check the parent of a … #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Composer test script | |
# Ensure composer test can be run from both fresh build and with test/vendor | |
# folder already installed, making sure contributors can rely on it to work locally. | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '8.3' ] | |
name: PHP ${{ matrix.php }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: json, imagick | |
tools: composer:v2 | |
coverage: none | |
- name: Imagick SVG support | |
continue-on-error: true | |
run: sudo apt-get install libmagickcore-6.q16-3-extra | |
- name: Cache library packages | |
id: composer-cache | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.lock') }} | |
restore-keys: ${{ runner.os }}-php-composer-${{ matrix.setup }}- | |
- name: Install dependencies | |
if: steps.composer-cache.outputs.cache-hit != 'true' | |
run: composer up | |
- name: Run `composer test` twice | |
run: | | |
composer test | |
composer test |