Skip to content

Merge pull request #41 from Chris53897/feature/php82 #44

Merge pull request #41 from Chris53897/feature/php82

Merge pull request #41 from Chris53897/feature/php82 #44

Workflow file for this run

name: Run CI
on: [push, pull_request]
jobs:
build:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1', '8.2', '8.3']
dependencies: ['normal', 'authoritative']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
tools: composer, cs2pr
- name: Install dependencies
if: matrix.dependencies == 'normal'
run: composer install --prefer-dist
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Install dependencies
if: matrix.dependencies == 'authoritative'
run: composer install --prefer-dist --classmap-authoritative
env:
COMPOSER_ROOT_VERSION: dev-master
- name: Run Psalm
if: matrix.php == '8.1'
run: ./vendor/bin/psalm --threads=2 --output-format=github --shepherd
- name: Run Phpunit
run: ./vendor/bin/phpunit
- name: Run PhpCs
if: matrix.php == '8.1'
run: ./vendor/bin/phpcs -q --report=checkstyle | cs2pr