diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 866c9afd..af68b7fc 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -75,24 +75,6 @@ jobs: - name: "Run composer audit" run: "composer audit --no-dev --locked" - - name: "Check code style" - run: "composer check-cs" - - - name: "Run PHPStan" - run: "composer phpstan" - - - name: "Lint twig" - run: "bin/console lint:twig templates --show-deprecations" - - - name: "Run migrations" - run: "bin/console doctrine:migrations:migrate --no-interaction" - - - name: "Setup messenger transports" - run: "bin/console messenger:setup-transports" - - - name: "Validate database schema" - run: "bin/console doctrine:schema:validate" - - name: "Set git committer info" shell: bash run: | @@ -110,3 +92,21 @@ jobs: - name: "Warmup prod cache" run: "bin/console cache:warmup --env=prod" + + - name: "Check code style" + run: "composer check-cs" + + - name: "Run PHPStan" + run: "composer phpstan" + + - name: "Lint twig" + run: "bin/console lint:twig templates --show-deprecations" + + - name: "Run migrations" + run: "bin/console doctrine:migrations:migrate --no-interaction" + + - name: "Setup messenger transports" + run: "bin/console messenger:setup-transports" + + - name: "Validate database schema" + run: "bin/console doctrine:schema:validate" diff --git a/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php b/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php index eda1d6bd..e8269f9e 100644 --- a/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php +++ b/src/Service/PackageSynchronizer/ComposerPackageSynchronizer.php @@ -218,6 +218,7 @@ public function synchronize(Package $package): void $this->packageManager->saveProvider($json, $package->organizationAlias(), $name); } catch (\Throwable $exception) { + throw $exception; $package->syncFailure(sprintf('Error: %s%s', $exception->getMessage(), isset($io) && strlen($io->getOutput()) > 1 ? "\nLogs:\n".$io->getOutput() : ''