Skip to content

ci: add GitHub Actions pipeline for Symfony smoke checks and fix test session config#5

Merged
TraXXX86 merged 1 commit into
mainfrom
codex/update-symfony-version
Feb 10, 2026
Merged

ci: add GitHub Actions pipeline for Symfony smoke checks and fix test session config#5
TraXXX86 merged 1 commit into
mainfrom
codex/update-symfony-version

Conversation

@TraXXX86

Copy link
Copy Markdown
Collaborator

Motivation

  • Ensure each push/PR runs an automated, reproducible check that the Symfony app boots and core configuration/routes/templates are valid.
  • Fix test environment incompatibility with Symfony 6.4 where framework.session.storage_id was deprecated and caused failures when running test commands.

Description

  • Added a GitHub Actions workflow at .github/workflows/ci.yml that installs PHP (8.2), caches dependencies, runs composer install, and executes Symfony smoke checks including composer validate --strict --no-check-publish, php bin/console --version, php bin/console about, php bin/console lint:container, php bin/console lint:yaml config --parse-tags, APP_ENV=dev php bin/console lint:twig templates and php bin/console router:match /en.
  • Replaced storage_id: session.storage.mock_file with storage_factory_id: session.storage.factory.mock_file in config/packages/test/framework.yaml to be compatible with Symfony 6.4 session options.
  • Updated dependency metadata files (composer.json and composer.lock) as part of the dependency refresh (Symfony components and related packages reflect 6.4+ versions in the lockfile changes included in this rollout).

Testing

  • Ran composer validate --strict --no-check-publish which succeeded.
  • Executed Symfony console checks php bin/console --version, php bin/console about, php bin/console lint:container, php bin/console lint:yaml config --parse-tags, APP_ENV=dev php bin/console lint:twig templates, and php bin/console router:match /en, all of which completed successfully.
  • Ran Doctrine migrations and created the test schema with php bin/console doctrine:migrations:migrate --env=test and php bin/console doctrine:schema:create --env=test, which completed (migrations applied and schema created); fixtures load required re-creation of an empty test DB and then ran but later hit a NOT NULL constraint during one fixtures run.
  • Ran a filtered PHPUnit run (./bin/phpunit --filter BlogControllerTest::testIndex) which executed but reported 1 failing test (HTTP 404 response) and several deprecation notices; this failure is unrelated to the CI pipeline itself and reflects an application-level test expectation to investigate further.

Codex Task

@TraXXX86 TraXXX86 merged commit 34545db into main Feb 10, 2026
1 check passed
@TraXXX86 TraXXX86 deleted the codex/update-symfony-version branch February 10, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant