Repository: formapro/JsFormValidatorBundle
Local path: /Volumes/SRC/JsFormValidatorBundle
- PR #173 revived the project and was merged into
formapro/master. - PR #174 restored GitHub Actions CI and was merged into
formapro/master. - PR #175 restored selected old PR fixes and was merged into
formapro/master. - Replacement PRs #176, #177, and #178 were merged into
formapro/master. 1.7.0-beta1was published fromformapro/master.
- Added
.github/workflows/ci.yml. - The workflow runs on
pushandpull_request. - The PHP job runs on PHP
8.4,8.5, and8.6nightly. - The PHP job runs
composer update,composer validate --strict, andcomposer test. - The JavaScript job runs on Node
22with PHP8.5. - The JavaScript job installs Cypress system dependencies, then runs
composer update,npm install, andnpm test. - The PHPStan job runs on PHP
8.5, installs dependencies withcomposer update, warms the Symfony test cache, and runscomposer phpstan. - The Coverage job runs on PHP
8.5with Xdebug and Node22, then runscomposer coverageandnpm run test:coverage. - Coverage generates Cobertura XML, uploads it with
actions/upload-code-coverage@v1when GitHub permissions allow, and keeps raw reports as workflow artifacts. - Coverage thresholds are enforced by
tools/check-coverage.php: PHP line coverage at least50%, JavaScript line coverage at least60%. - The old
.travis.ymlfile was removed. README.mdwas updated to use a GitHub Actions badge and test instructions instead of Travis CI references.package.jsonno longer advertises the old Travis CI badge in the package description.
php /tmp/jsfv-composer.phar testpasses:5 tests, 18 assertions.php /tmp/jsfv-composer.phar phpstanruns PHPStan withphpstan.neon.php /tmp/jsfv-composer.phar coveragegenerates PHP Cobertura coverage and checks the50%line threshold.npm testpasses: Jest197 tests; Cypress e2e16 tests.npm run test:coveragegenerates Jest coverage and checks the60%line threshold.- The local
composershim is broken withCould not open input file: /Users/ton/bin/composer, so use/tmp/jsfv-composer.pharlocally if needed.
- Prefer
nix developfrom the repository root when Nix is available. - The Nix shell provides the latest PHP available in pinned nixpkgs with Xdebug coverage support, Composer, Node.js 24, npm, zip/unzip, and Linux Cypress runtime libraries. It currently resolves to PHP 8.5.
- The Docker
php-fpmdevelopment image is maintained for vendor installation and ad hoc commands. It uses PHP 8.5, Composer 2, Node.js 24, and the PHP extensions required by the Symfony 8 fixture. - Run one-off commands with
nix develop -c <command>, for example:nix develop -c composer validate --strictnix develop -c composer testnix develop -c composer phpstannix develop -c composer coveragenix develop -c npm testnix develop -c npm run test:coverage
- On a fresh checkout, run
nix develop -c npm installfirst; if Cypress reports a missing binary, runnix develop -c npx cypress install. - If flakes are not enabled globally, prefix commands with
nix --extra-experimental-features "nix-command flakes". .envrcusesuse flake; rundirenv allowonce if using direnv.- Inside the Nix shell, use
composerdirectly. Outside the Nix shell, keep using/tmp/jsfv-composer.pharif the local Composer shim is still broken.
gh pr checks 174 --repo formapro/JsFormValidatorBundle --watch=falsereportedno checks reported.- This is expected because PR #174 introduces the GitHub Actions workflow for the first time.
- After PR #174 is merged, the workflow should exist on
masterand run on subsequentpushandpull_requestevents.