Remove outdated version from README #65
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
env: | |
PHP_EXTENSIONS: json, libxml, mbstring | |
PHP_INI_VALUES: assert.exception=1, zend.assertions=1, pcov.directory=Classes | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
php-version: [ 7.4, 8.0, 8.1, 8.2 ] | |
redis-version: [ 5, 6 ] | |
compiler: | |
- default | |
dependencies: | |
- highest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Override PHP ini values for JIT compiler | |
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=1205, opcache.jit_buffer_size=4096M" >> $GITHUB_ENV | |
- name: Install PHP with extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
coverage: xdebug | |
extensions: ${{ env.PHP_EXTENSIONS }} | |
ini-values: ${{ env.PHP_INI_VALUES }} | |
- name: Determine composer cache directory on Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV | |
- name: Cache dependencies installed with composer | |
uses: actions/cache@v1 | |
with: | |
path: ${{ env.COMPOSER_CACHE_DIR }} | |
key: php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} | |
restore-keys: | | |
php${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- | |
- name: Install lowest dependencies with composer | |
if: matrix.dependencies == 'lowest' | |
run: composer update --no-ansi --no-interaction --no-progress --prefer-lowest | |
- name: Install highest dependencies with composer | |
if: matrix.dependencies == 'highest' | |
run: composer update --no-ansi --no-interaction --no-progress | |
- name: Show modules | |
run: php -i; php -m | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- name: Run tests with phpunit | |
run: vendor/bin/phpunit --coverage-clover=coverage.xml | |
- name: Send code coverage report to Codecov.io | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} |