Skip to content

ci: separate PHP unit tests into a dedicated workflow - #133

Open
vitormattos wants to merge 3 commits into
mainfrom
ci/early-php-unit-gate
Open

vitormattos wants to merge 3 commits into
mainfrom
ci/early-php-unit-gate

Conversation

@vitormattos

@vitormattos vitormattos commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #70

  • Expose the six existing standalone PHP domain suites through composer test:unit.
  • Add a dedicated php-unit.yml workflow following the organization’s PHP workflow patterns: pinned actions, Nextcloud version matrix derived from appinfo/info.xml, read-only permissions, concurrency cancellation, and a summary job that fails unless the matrix and unit tests succeed.
  • Remove duplicate standalone unit test invocations from the existing integration workflow and smoke lab. Preserve all actual integration checks, including database and browser matrices.

The organization’s database-specific PHPUnit templates install Nextcloud and exercise integration tests; these standalone suites do not require a Nextcloud installation or database. No new Bash/Python scripts, test framework, production code or dependency is introduced.

Local validation: composer run test:unit passed all six suites (563 assertions each) with PHP 8.3 and 8.4; actionlint, bash -n tests/ci/smoke.sh, and diff checks passed. PHP 8.5 and full remote CI remain to be verified. Independent review is required before merge.

Refs #70

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Refs #70

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos changed the title ci: verify standalone PHP unit suites before frontend setup ci: run standalone PHP suites before frontend setup Nov 25, 2026
Refs #70

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos changed the title ci: run standalone PHP suites before frontend setup ci: separate PHP unit tests into a dedicated workflow Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant