Fix typo and refactor codebase for PHP 8 compatibility #88
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
# GitHub Action see https://github.com/shivammathur/setup-php | |
name: Code Analyse | |
on: [push, pull_request] | |
jobs: | |
unit_tests: | |
name: GPWebPay-core (PHP ${{ matrix.php-versions }}) | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: openssl | |
coverage: none #optional | |
tools: composer:v2 | |
- name: Composer dependencies | |
uses: "ramsey/composer-install@v1" | |
- name: Run Codestyle chceck | |
run: php vendor/bin/phpcs -p | |
- name: Run PHPStan | |
run: php vendor/bin/phpstan analyse |