Skip to content

Add support for GitHub actions #1859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Jan 17, 2020

Conversation

Smolevich
Copy link
Contributor

@Smolevich Smolevich commented Oct 21, 2019

  • Add ci file for Github Actions
  • Fix work with coveralls.io (remove satooshi/php-coveralls beacuse this package is abandoned and no longer maintained. The author suggests using the php-coveralls/php-coveralls package instead.)

@Smolevich
Copy link
Contributor Author

@jenssegers , can you review please?

@Smolevich
Copy link
Contributor Author

@jenssegers example of coveralls report

@Smolevich
Copy link
Contributor Author

@jenssegers can you review please?

@Smolevich
Copy link
Contributor Author

@jenssegers, can you review please?

@Smolevich
Copy link
Contributor Author

php-coveralls/php-coveralls#275 pr with changes for support GitHub Actions

runs-on: ubuntu-latest
strategy:
matrix:
php: [7.1, 7.2, 7.3]

Choose a reason for hiding this comment

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

Since 7.4 is out is that something we want to look at supporting?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We cann add 7.4 to matrix in any time

@@ -2,6 +2,7 @@

$mongoHost = env('MONGO_HOST', 'mongodb');
$mongoPort = env('MONGO_PORT') ? (int) env('MONGO_PORT') : 27017;
$mysqlPort = env('MYSQL_PORT') ? (int) env('MYSQL_PORT') : 3306;

Choose a reason for hiding this comment

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

since we are starting the mysql service on port 3307, if for some reason the env variable isn't set will this connect?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

or can to connect or connect was failed

env:
MONGO_HOST: 0.0.0.0
MYSQL_HOST: 0.0.0.0
MYSQL_PORT: 3307

Choose a reason for hiding this comment

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

Do we need to set env vars before we run phpunit?
Also I see we are setting the MYSQL_PORT to 3306 in the phpunit.xml.dist, will that overwrite our 3307 from this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

env variable MYSQL_PORT override value in phpunit.xml

@Smolevich Smolevich force-pushed the add-support-for-github-actions branch 5 times, most recently from 3b05bcf to adb57c2 Compare January 16, 2020 23:02
@Smolevich Smolevich force-pushed the add-support-for-github-actions branch from adb57c2 to a51a266 Compare January 16, 2020 23:09
@jenssegers
Copy link
Contributor

How do I check if this is working? :)

@jenssegers
Copy link
Contributor

I saw that it ran fine on your fork 👍

@jenssegers jenssegers merged commit c0ca8ab into mongodb:master Jan 17, 2020
@Smolevich
Copy link
Contributor Author

Failed build with this problem php-coveralls/php-coveralls#275

mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 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.

3 participants