🔨 Update (validation): validation rules for upgrade_class_payo… #22
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: Test Compatibility | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-version: ['7.4', '8.0', '8.1'] | |
fail-fast: false | |
env: | |
COMPOSER_ALLOW_SUPERUSER: 1 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: mbstring, xml, bcmath, json, fileinfo | |
ini-values: post_max_size=256M, upload_max_filesize=256M, memory_limit=512M | |
coverage: none | |
- name: Check PHP version | |
run: php -v | |
- name: Setup Composer | |
run: composer self-update --preview | |
- name: Install dependencies | |
run: | | |
# Install dependencies based on PHP version | |
if [ "${{ matrix.php-version }}" == "7.4" ]; then | |
composer require illuminate/support:^8.0 illuminate/console:^8.0 illuminate/http:^8.0 | |
elif [ "${{ matrix.php-version }}" == "8.0" ]; then | |
composer require illuminate/support:^9.0 illuminate/console:^9.0 illuminate/http:^9.0 | |
elif [ "${{ matrix.php-version }}" == "8.1" ]; then | |
composer require illuminate/support:^10.0 illuminate/console:^10.0 illuminate/http:^10.0 | |
fi | |
composer install --prefer-dist --no-progress --no-suggest |