Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run all tests for all Laravel versions #94

Merged
merged 6 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ jobs:


build:
name: Liquetsoft FIAS (PHP ${{ matrix.php-versions }})
name: Liquetsoft FIAS (PHP ${{ matrix.php-versions }}, Laravel ${{ matrix.laravel-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php-versions: ['8.2']
php-versions: ['8.2', '8.3']
laravel-versions: ['^9.0', '^10.0', '^11.0']
steps:
- uses: actions/checkout@v2
- name: Install PHP
Expand All @@ -24,14 +25,20 @@ jobs:
php-version: ${{ matrix.php-versions }}
- name: Check PHP Version
run: php -v
- name: Validate composer.json and composer.lock
- name: Validate composer.json
run: composer validate
- name: Set up Laravel components versions
run: "sed -i -E \"s#\\\"(laravel/.+)\\\".*:.*\\\"(.+)\\\"#\\\"\\1\\\":\\\"${{ matrix.laravel-versions }}\\\"#g\" composer.json"
- name: Set up Illuminate components versions
run: "sed -i -E \"s#\\\"(illuminate/.+)\\\".*:.*\\\"(.+)\\\"#\\\"\\1\\\":\\\"${{ matrix.laravel-versions }}\\\"#g\" composer.json"
- name: Show composer.json
run: cat composer.json
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-laravel-${{ matrix.laravel-versions }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
Expand Down Expand Up @@ -63,8 +70,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.2']
laravel-version: ['^8.0', '^9.0', '^10.0', '^11.0']
php-version: ['8.2', '8.3']
laravel-version: ['^9.0', '^10.0', '^11.0']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions src/Serializer/EloquentDenormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ private function createDataArrayForModel(array $data, Model $entity): array

/**
* Пробует преобразовать имя параметра так, чтобы получить соответствие из модели.
*
* @psalm-suppress MixedArgument
*/
private function mapParameterNameToModelAttributeName(string $name, Model $entity): ?string
{
Expand Down
Loading