Skip to content

Merge pull request #177 from minvws/dependabot/composer/phpstan/phpst… #230

Merge pull request #177 from minvws/dependabot/composer/phpstan/phpst…

Merge pull request #177 from minvws/dependabot/composer/phpstan/phpst… #230

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
run-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
php: [ "8.0", "8.1", "8.2" ]
composer_flags: [ "", "--prefer-lowest" ]
name: "PHP ${{ matrix.php }} ${{ matrix.composer_flags}}"
env:
PHP: ${{ matrix.os }}
COMPOSER_MEMORY_LIMIT: -1
COMPOSER_FLAGS: ${{ matrix.composer_flags }}
PHP_VERSION: ${{ matrix.php }}
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: xdebug, zip
- name: Install dependencies
run: |
composer self-update
COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
- name: Coding style PSR12 Check
run: vendor/bin/phpcs
- name: Static analysis with PHPStan
run: vendor/bin/phpstan analyse
- name: Static analysis with PHPStan
run: vendor/bin/psalm
- name: Execute tests (Unit and Feature)
run: vendor/bin/phpunit