Skip to content

Update all non-major dependencies #840

Update all non-major dependencies

Update all non-major dependencies #840

Workflow file for this run

name: Test
on: [ push, pull_request ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '8.1'
- '8.2'
dependencies:
- 'locked'
- 'latest'
- 'lowest'
name: PHP ${{ matrix.php-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP, with composer and extensions
uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-version }}
# TODO: Remove next lint to enable memcached after that issue is fixed: https://github.com/php-memcached-dev/php-memcached/issues/477
extensions: :memcached
coverage: none
- name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ~/.cache/composer
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies (locked)
if: ${{ matrix.dependencies == 'locked' }}
run: composer install --no-interaction
- name: Install dependencies (latest)
if: ${{ matrix.dependencies == 'latest' }}
run: composer update --no-interaction
- name: Install dependencies (lowest)
if: ${{ matrix.dependencies == 'lowest' }}
run: composer update --prefer-lowest --no-interaction
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Test with PHPUnit
run: make unit