Skip to content

prepare release

prepare release #97

Workflow file for this run

name: CI
on:
push:
branches:
- '*.x'
tags:
- '[0-9].[0-9]+'
pull_request:
jobs:
test:
name: "PHPUnit"
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.0', '8.1', '8.2', '8.3']
include:
- php-version: '8.0'
composer-flags: '--prefer-stable --prefer-lowest'
steps:
- name: Check out code into the workspace
uses: actions/checkout@v3
- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Remove dev tools to not interfere with dependencies
run: composer remove --dev friendsofphp/php-cs-fixer phpstan/phpstan-phpunit phpstan/phpstan rector/rector
- name: Composer cache
uses: actions/cache@v3
with:
path: ${{ env.HOME }}/.composer/cache
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
- name: Install dependencies
run: composer update ${{ matrix.composer-flags }} --prefer-dist --no-interaction
- name: Run tests
run: composer phpunit