Skip to content

Fix CollectionMutators' PHP 8 compatibility (#10) #8

Fix CollectionMutators' PHP 8 compatibility (#10)

Fix CollectionMutators' PHP 8 compatibility (#10) #8

Workflow file for this run

name: "Unit tests"
on:
push:
branches: [ main, master, "1.0" ]
pull_request:
branches: [ main, master, "1.0" ]
jobs:
static-analysis-phpstan:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- 8.0
- 8.1
- 8.2
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: Install dependencies with composer
run: composer i --no-interaction --no-progress --no-suggest
- name: Run PHPUnit
run: ./vendor/bin/phpunit --testdox
- name: Run PHPCS
run: ./vendor/bin/phpcs --standard=PSR2 src/ --colors -n