Skip to content

Compatibility with PHPUnit 11 #158

Compatibility with PHPUnit 11

Compatibility with PHPUnit 11 #158

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
on:
- pull_request
- push
name: "Continuous Integration"
jobs:
run:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: true
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
php-versions: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
composer-versions: ['composer:v1', 'composer:v2']
dependencies: ["lowest", "highest"]
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 10
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: ${{ matrix.composer-versions }}
extensions: xdebug
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: "Install dependencies"
uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.dependencies }}"
- name: Run tests
run: |
composer run analyse
composer run lint
composer run test
env:
PHP_CS_FIXER_IGNORE_ENV: true