Skip to content

Comments

Update deps + test on dbal v3#87

Merged
homersimpsons merged 1 commit intothecodingmachine:2.0from
aszenz:2.0
Jun 8, 2024
Merged

Update deps + test on dbal v3#87
homersimpsons merged 1 commit intothecodingmachine:2.0from
aszenz:2.0

Conversation

@aszenz
Copy link
Contributor

@aszenz aszenz commented Feb 11, 2024

After updating schema-analyzer in thecodingmachine/schema-analyzer#13

Follow up of 0c0ab13 to support v2 of schema analyzer

  • Updates dev deps
  • Fixes coverage in ci
  • Migrate phpunit config to newer schema
  • Ignore unmatched errors in phpstan
  • Adds asserts to fix phpstan errors
  • Fixes methods accessing dbal v3
  • Use mysql80/postgressql10 platforms (the normal ones throwed class not found exception)
  • Add test script to test with myql locally

- Updates dev deps
- Fixes coverage in ci
- Migrate phpunit config to newer schema
- Ignore unmatched errors in phpstan
- Adds asserts to fix phpstan errors
- Fixes methods accessing dbal v3
- Use mysql80/postgressql10 platforms
@aszenz
Copy link
Contributor Author

aszenz commented Feb 11, 2024

Copy link
Collaborator

@homersimpsons homersimpsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your work on this! (sorry for the late review)

The changes are quite good!

# Let's wait for MySQL 8 to start
sleep 20

vendor/bin/phpunit -c phpunit.xml.dist $NO_COVERAGE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this $NO_COVERAGE variable ? Can you document it at the beginning of the file ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a way to pass arguments to phpunit, NO_COVERAGE=--no-coverage, since it's a dev script, i don't think it's worth documenting

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could just be a $PHPUNIT_ARG looking at the position? Or $PHPUNIT_EXTRA_ARG?

@aszenz aszenz requested a review from homersimpsons May 23, 2024 09:39
Copy link
Collaborator

@homersimpsons homersimpsons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aszenz Thank you for your contribution to upgrade the whole TDBM stack to DBAL 3!

Released in https://github.com/thecodingmachine/magic-query/releases/tag/v2.0.0-beta.2

@homersimpsons homersimpsons merged commit 37cf04d into thecodingmachine:2.0 Jun 8, 2024
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.

2 participants