Skip to content

Merge pull request #59 from someniatko/allow-psr-http-message-v2 #28

Merge pull request #59 from someniatko/allow-psr-http-message-v2

Merge pull request #59 from someniatko/allow-psr-http-message-v2 #28

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
coding-standards:
name: Coding Standards
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
- name: Install Composer Dependencies
uses: ramsey/composer-install@v1
- name: Run PHP_CodeSniffer
run: php vendor/bin/phpcs --no-cache --no-colors
static-analysis:
name: Static Analysis
strategy:
matrix:
os: [ ubuntu-latest ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
composer-deps: [ 'lowest', 'highest' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install Composer Dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.composer-deps }}
- name: Run PHPStan
run: php vendor/bin/phpstan analyse --no-interaction
- name: Run Psalm
run: php vendor/bin/psalm --shepherd
unit-tests:
name: Unit Tests
strategy:
matrix:
os: [ ubuntu-latest ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
composer-deps: [ 'lowest', 'highest' ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Install Composer Dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: ${{ matrix.composer-deps }}
- name: Run unit tests
run: php vendor/bin/phpunit