From 1166e66e858938b0f0732666360b2e578b1a1197 Mon Sep 17 00:00:00 2001 From: Stijn Klopper Date: Tue, 11 Feb 2025 11:02:12 +0100 Subject: [PATCH 1/2] Upgrade deprecated actions/cache in workflow to v4 --- .github/workflows/main.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index aeed3ee..1596c12 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -21,8 +21,9 @@ jobs: php-version: ${{ matrix.php-versions }} - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - uses: actions/cache@v2 + run: | + echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} From 22f946cd1f96288008c4eb75cbb304878a3cca5e Mon Sep 17 00:00:00 2001 From: Stijn Klopper Date: Tue, 11 Feb 2025 12:57:05 +0100 Subject: [PATCH 2/2] Fix order of persisted entities in failing unit test --- test/Provider/EntityMutationMetadataProviderTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Provider/EntityMutationMetadataProviderTest.php b/test/Provider/EntityMutationMetadataProviderTest.php index b603528..1693291 100644 --- a/test/Provider/EntityMutationMetadataProviderTest.php +++ b/test/Provider/EntityMutationMetadataProviderTest.php @@ -94,7 +94,7 @@ public function testChangesNewEntityFlushed(): void self::assertEquals([ Gallery::class => [$gallery], - Visitor::class => [$v1, $v2], + Visitor::class => [$v2, $v1], ], $this->provider->getFullChangeSet($this->em)); }