Skip to content

Add gitattributes and make the CI configuration version-independent - #1

Open
tyrsson wants to merge 2 commits into
0.1.xfrom
chore/export-ignore
Open

tyrsson wants to merge 2 commits into
0.1.xfrom
chore/export-ignore

Conversation

@tyrsson

@tyrsson tyrsson commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Adds the .gitattributes every other php-db package has, so a consumer's vendor directory receives the source and the licence only: the test directory, PHPUnit and mago configuration, the mutation config, and the CI files are marked export-ignore.

The first CI run on this branch also found two configuration defects, fixed here:

  • The reusable workflow overrides mago's php-version per matrix leg, and from 8.4 the formatter drops the parentheses around new in member access. Formatting passed on 8.3 and failed on 8.4 and 8.5. parentheses-around-new-in-member-access is now pinned, as phpdb and phpdb-mysql already do.
  • PHPUnit 12 reports a failed ini_set as a warning, and the config runs with failOnWarning, so xdebug.max_nesting_level failed the coverage leg, where pcov is the driver and xdebug is not loaded. Removed; phpdb-mysql on PHPUnit 12 carries no ini lines for the same reason.
tyrsson and others added 2 commits November 27, 2026 17:13
Every other php-db package marks its test directory, PHPUnit config, mago config and CI files
export-ignore, so a consumer's vendor directory gets the source and the licence only.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The workflow overrides mago's php-version per matrix leg, and from 8.4 the formatter drops the
parentheses around new in member access, so the check passed on 8.3 and failed on 8.4 and 8.5.
phpdb and phpdb-mysql pin parentheses-around-new-in-member-access for the same reason.

PHPUnit 12 reports a failed ini_set as a warning, and this config runs with failOnWarning, so the
xdebug.max_nesting_level line failed the coverage leg, where the driver is pcov and xdebug is not
loaded. This suite does not nest, and phpdb-mysql on PHPUnit 12 carries no ini lines either.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@tyrsson tyrsson changed the title Keep the test and tooling files out of the distributed archive Nov 27, 2026
@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant