Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
95 changes: 47 additions & 48 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,60 @@ name: PHP SDK Validation

on:
pull_request:
branches: [ master ]
branches: [master]

jobs:
validate:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [7.3, 7.4, 8.0, 8.1, 8.2]
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]

steps:
- id: checkout
name: Checkout repo
uses: actions/checkout@v4

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- id: setup-composer
name: Setup Composer
run: |
php -v
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

- id: composer-validation
name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- id: composer-install
name: Install dependencies
run: composer install --prefer-dist --no-progress

- id: php-unit-tests
name: Run test suite
run: ./vendor/bin/phpunit
- id: psalm-validation
name: Psalm Validation
run: |
composer require --dev vimeo/psalm "4.30" -W
./vendor/bin/psalm --init
composer require --dev alexeyshockov/guzzle-psalm-plugin && vendor/bin/psalm-plugin enable alexeyshockov/guzzle-psalm-plugin
./vendor/bin/psalm
./vendor/bin/psalm --taint-analysis
- id: checkout
name: Checkout repo
uses: actions/checkout@v4

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- id: setup-composer
name: Setup Composer
run: |
php -v
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

- id: composer-validation
name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- id: composer-install
name: Install dependencies
run: composer install --prefer-dist --no-progress

- id: php-unit-tests
name: Run test suite
run: ./vendor/bin/phpunit

- id: psalm-validation
name: Psalm Validation
run: |
composer require --dev vimeo/psalm "4.30" -W
./vendor/bin/psalm --init
composer require --dev alexeyshockov/guzzle-psalm-plugin && vendor/bin/psalm-plugin enable alexeyshockov/guzzle-psalm-plugin
./vendor/bin/psalm
./vendor/bin/psalm --taint-analysis
53 changes: 37 additions & 16 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ docs/Api/TaxesApi.md
docs/Api/UserApi.md
docs/Api/WebhooksApi.md
docs/Model/ArchiveDocument.md
docs/Model/Attachment.md
docs/Model/AttachmentData.md
docs/Model/CashbookEntry.md
docs/Model/CashbookEntryDocument.md
Expand Down Expand Up @@ -107,6 +108,7 @@ docs/Model/GetNewReceivedDocumentTotalsRequest.md
docs/Model/GetNewReceivedDocumentTotalsResponse.md
docs/Model/GetPaymentAccountResponse.md
docs/Model/GetPaymentMethodResponse.md
docs/Model/GetPendingReceivedDocumentResponse.md
docs/Model/GetPriceListItemsResponse.md
docs/Model/GetProductResponse.md
docs/Model/GetReceiptPreCreateInfoResponse.md
Expand All @@ -116,6 +118,7 @@ docs/Model/GetReceivedDocumentPreCreateInfoResponse.md
docs/Model/GetReceivedDocumentResponse.md
docs/Model/GetSupplierResponse.md
docs/Model/GetTaxProfileResponse.md
docs/Model/GetTemplatesResponse.md
docs/Model/GetUserInfoResponse.md
docs/Model/GetUserInfoResponseEmailConfirmationState.md
docs/Model/GetUserInfoResponseInfo.md
Expand Down Expand Up @@ -162,6 +165,8 @@ docs/Model/ListIssuedDocumentsResponsePage.md
docs/Model/ListLanguagesResponse.md
docs/Model/ListPaymentAccountsResponse.md
docs/Model/ListPaymentMethodsResponse.md
docs/Model/ListPendingReceivedDocumentsResponse.md
docs/Model/ListPendingReceivedDocumentsResponsePage.md
docs/Model/ListPriceListsResponse.md
docs/Model/ListProductCategoriesResponse.md
docs/Model/ListProductsResponse.md
Expand Down Expand Up @@ -215,6 +220,12 @@ docs/Model/PaymentMethod.md
docs/Model/PaymentMethodDetails.md
docs/Model/PaymentMethodType.md
docs/Model/PaymentTermsType.md
docs/Model/PendingReceivedDocument.md
docs/Model/PendingReceivedDocumentExtractedData.md
docs/Model/PendingReceivedDocumentExtractedDataMining.md
docs/Model/PendingReceivedDocumentPaymentsListItem.md
docs/Model/PendingReceivedDocumentPaymentsListItemPaymentTerms.md
docs/Model/PendingReceivedDocumentType.md
docs/Model/PermissionLevel.md
docs/Model/Permissions.md
docs/Model/PermissionsFicIssuedDocumentsDetailed.md
Expand Down Expand Up @@ -247,6 +258,7 @@ docs/Model/ShowTotalsMode.md
docs/Model/Supplier.md
docs/Model/SupplierType.md
docs/Model/TaxProfile.md
docs/Model/TemplateType.md
docs/Model/TransformIssuedDocumentResponse.md
docs/Model/UploadArchiveAttachmentResponse.md
docs/Model/UploadF24AttachmentResponse.md
Expand Down Expand Up @@ -288,8 +300,10 @@ lib/Api/UserApi.php
lib/Api/WebhooksApi.php
lib/ApiException.php
lib/Configuration.php
lib/FormDataProcessor.php
lib/HeaderSelector.php
lib/Model/ArchiveDocument.php
lib/Model/Attachment.php
lib/Model/AttachmentData.php
lib/Model/CashbookEntry.php
lib/Model/CashbookEntryDocument.php
Expand Down Expand Up @@ -377,6 +391,7 @@ lib/Model/GetNewReceivedDocumentTotalsRequest.php
lib/Model/GetNewReceivedDocumentTotalsResponse.php
lib/Model/GetPaymentAccountResponse.php
lib/Model/GetPaymentMethodResponse.php
lib/Model/GetPendingReceivedDocumentResponse.php
lib/Model/GetPriceListItemsResponse.php
lib/Model/GetProductResponse.php
lib/Model/GetReceiptPreCreateInfoResponse.php
Expand All @@ -386,6 +401,7 @@ lib/Model/GetReceivedDocumentPreCreateInfoResponse.php
lib/Model/GetReceivedDocumentResponse.php
lib/Model/GetSupplierResponse.php
lib/Model/GetTaxProfileResponse.php
lib/Model/GetTemplatesResponse.php
lib/Model/GetUserInfoResponse.php
lib/Model/GetUserInfoResponseEmailConfirmationState.php
lib/Model/GetUserInfoResponseInfo.php
Expand Down Expand Up @@ -432,6 +448,8 @@ lib/Model/ListIssuedDocumentsResponsePage.php
lib/Model/ListLanguagesResponse.php
lib/Model/ListPaymentAccountsResponse.php
lib/Model/ListPaymentMethodsResponse.php
lib/Model/ListPendingReceivedDocumentsResponse.php
lib/Model/ListPendingReceivedDocumentsResponsePage.php
lib/Model/ListPriceListsResponse.php
lib/Model/ListProductCategoriesResponse.php
lib/Model/ListProductsResponse.php
Expand Down Expand Up @@ -486,6 +504,12 @@ lib/Model/PaymentMethod.php
lib/Model/PaymentMethodDetails.php
lib/Model/PaymentMethodType.php
lib/Model/PaymentTermsType.php
lib/Model/PendingReceivedDocument.php
lib/Model/PendingReceivedDocumentExtractedData.php
lib/Model/PendingReceivedDocumentExtractedDataMining.php
lib/Model/PendingReceivedDocumentPaymentsListItem.php
lib/Model/PendingReceivedDocumentPaymentsListItemPaymentTerms.php
lib/Model/PendingReceivedDocumentType.php
lib/Model/PermissionLevel.php
lib/Model/Permissions.php
lib/Model/PermissionsFicIssuedDocumentsDetailed.php
Expand Down Expand Up @@ -518,6 +542,7 @@ lib/Model/ShowTotalsMode.php
lib/Model/Supplier.php
lib/Model/SupplierType.php
lib/Model/TaxProfile.php
lib/Model/TemplateType.php
lib/Model/TransformIssuedDocumentResponse.php
lib/Model/UploadArchiveAttachmentResponse.php
lib/Model/UploadF24AttachmentResponse.php
Expand All @@ -542,19 +567,15 @@ lib/Model/WebhooksSubscriptionMapping.php
lib/Model/WebhooksSubscriptionVerificationMethod.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Api/PriceListsApiTest.php
test/Model/EntityClientPreCreateInfoTest.php
test/Model/GetBinIssuedDocumentResponseTest.php
test/Model/GetBinReceivedDocumentResponseTest.php
test/Model/GetEntityClientPreCreateInfoResponseTest.php
test/Model/GetPriceListItemsResponseTest.php
test/Model/ListBinIssuedDocumentsTest.php
test/Model/ListBinReceivedDocumentsTest.php
test/Model/ListPriceListsResponseTest.php
test/Model/PriceListItemTest.php
test/Model/PriceListPricesTypeTest.php
test/Model/PriceListTest.php
test/Model/PriceListTypeTest.php
test/Model/VerifyWebhooksSubscriptionRequestTest.php
test/Model/VerifyWebhooksSubscriptionTest.php
test/Model/WebhooksSubscriptionVerificationMethodTest.php
test/Model/AttachmentTest.php
test/Model/GetPendingReceivedDocumentResponseTest.php
test/Model/GetTemplatesResponseTest.php
test/Model/ListPendingReceivedDocumentsResponsePageTest.php
test/Model/ListPendingReceivedDocumentsResponseTest.php
test/Model/PendingReceivedDocumentExtractedDataMiningTest.php
test/Model/PendingReceivedDocumentExtractedDataTest.php
test/Model/PendingReceivedDocumentPaymentsListItemPaymentTermsTest.php
test/Model/PendingReceivedDocumentPaymentsListItemTest.php
test/Model/PendingReceivedDocumentTest.php
test/Model/PendingReceivedDocumentTypeTest.php
test/Model/TemplateTypeTest.php
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.12.0
7.20.0
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

Loading
Loading