switch to default composer

This commit is contained in:
Simon Wisselink
2021-01-08 12:17:11 +01:00
parent 7e0d639d36
commit 0bca092b1a
2 changed files with 28 additions and 25 deletions

View File

@@ -46,34 +46,36 @@ jobs:
compiler: jit compiler: jit
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Override PHP ini values for JIT compiler - name: Override PHP ini values for JIT compiler
if: matrix.compiler == 'jit' if: matrix.compiler == 'jit'
run: echo "PHP_INI_VALUES::assert.exception=1, zend.assertions=1, opcache.enable=1, opcache.enable_cli=1, opcache.optimization_level=-1, opcache.jit=1255, opcache.jit_buffer_size=32M" >> $GITHUB_ENV run: echo "PHP_INI_VALUES::assert.exception=1, zend.assertions=1, opcache.enable=1, opcache.enable_cli=1, opcache.optimization_level=-1, opcache.jit=1255, opcache.jit_buffer_size=32M" >> $GITHUB_ENV
- name: Install PHP with extensions - name: Install PHP with extensions
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
coverage: pcov coverage: pcov
extensions: ${{ env.PHP_EXTENSIONS }} extensions: ${{ env.PHP_EXTENSIONS }}
ini-values: ${{ env.PHP_INI_VALUES }} ini-values: ${{ env.PHP_INI_VALUES }}
- name: Determine composer cache directory - name: Validate composer.json and composer.lock
run: echo "COMPOSER_CACHE_DIR=$(./tools/composer config cache-dir)" >> $GITHUB_ENV run: composer validate
- name: Cache dependencies installed with composer - name: Cache Composer packages
uses: actions/cache@v2 id: composer-cache
with: uses: actions/cache@v2
path: ${{ env.COMPOSER_CACHE_DIR }} with:
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }} path: vendor
restore-keys: | key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
php${{ matrix.php-version }}-composer- restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies with composer - name: Install dependencies
run: php ./tools/composer update --no-ansi --no-interaction --no-progress if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run tests with phpunit - name: Run tests with phpunit
run: ./phpunit.sh run: ./phpunit.sh

1
.phpunit.result.cache Normal file

File diff suppressed because one or more lines are too long