Skip to content

Commit 31224c3

Browse files
authored
fix: pipeline (#173)
* fix: pipeline * fix: openapi schema pipeline flakiness
1 parent 85f7ec6 commit 31224c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/php.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ jobs:
8181
composer init:admin
8282
composer openapi:generate
8383
git update-index --refresh || printf ''
84-
git diff-index "${{ github.sha }}" --quiet -- src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
85-
git diff-index "${{ github.sha }}" --quiet -- src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)
84+
git diff --exit-code src/Resources/app/administration/src/types/openapi.d.ts || (echo "Please run 'composer openapi:generate' to update openapi.d.ts" && exit 1)
85+
git diff --exit-code src/Resources/Schema || (echo "Please run 'composer openapi:generate' to update Resources/Schema files" && exit 1)

tests/Pos/Converter/ProductConverterTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ private function createProduct(): Product
242242

243243
private function createProductConverter(): ProductConverter
244244
{
245-
$variantConverter = $this->createStub(VariantConverter::class);
245+
$variantConverter = static::createStub(VariantConverter::class);
246246
$variantConverter->method('convert')->willReturn(new Variant());
247247

248-
$categoryConverter = $this->createStub(CategoryConverter::class);
248+
$categoryConverter = static::createStub(CategoryConverter::class);
249249
$categoryConverter->method('convert')->willReturn(new Category());
250250

251251
return new ProductConverter(

tests/Pos/Sync/Inventory/InventorySyncerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function setUp(): void
6262
$this->inventoryContext->setSalesChannel($salesChannel);
6363

6464
$this->inventorySyncer = new InventorySyncer(
65-
$this->createStub(InventoryContextFactory::class),
65+
static::createStub(InventoryContextFactory::class),
6666
$this->localUpdater,
6767
$this->remoteUpdater,
6868
$this->inventoryRepository

0 commit comments

Comments
 (0)