Merge pull request #187 from minvws/dependabot/composer/phpunit/phpun… #245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |