Skip to content
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

[ci] windows tests on GitHub actions #1424

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

jrushlow
Copy link
Collaborator

@jrushlow jrushlow commented Jan 25, 2024

  • tests that use symfony/panther are skipped on windows. The windows runner does not chrome/firefox/etc pre-installed.

  • fixes regex that gets a list of files create or updated by MakerBundle (used to test those files were actually created). the file path in the output differs on linux, github actions linux images, macos, & windows. The new regex pattern handles all of those cases. This regex is only used in Maker tests

  • adds a test for that regex to protect from hidden test failures in the future.

@jrushlow jrushlow added Status: Needs Work Additional work is needed Minor Minor Enhancement labels Jan 25, 2024
@jrushlow jrushlow force-pushed the ci/windows branch 2 times, most recently from d697f28 to 9fb8bdb Compare January 26, 2024 22:55
@jrushlow jrushlow force-pushed the ci/windows branch 4 times, most recently from f915a14 to ee61d6a Compare February 3, 2024 08:22
@jrushlow jrushlow marked this pull request as ready for review February 3, 2024 08:26
@jrushlow jrushlow changed the title WIP - [ci] windows tests on GitHub actions [ci] windows tests on GitHub actions Feb 3, 2024
@jrushlow jrushlow added Status: Needs Review Needs to be reviewed and removed Status: Needs Work Additional work is needed labels Feb 3, 2024
@jrushlow jrushlow mentioned this pull request Feb 3, 2024
1 task
use PHPUnit\Framework\TestCase;
use Symfony\Bundle\MakerBundle\Test\MakerTestEnvironment;

class RegexTest extends TestCase
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Calling this MakeTestEnvironmentTest was not compatible with PHPUnit --filter (test wouldn't run) and I'm not sure it was running w/ just simple-phpunit && no flags either...

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

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

👏

@jrushlow jrushlow added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Feb 6, 2024
@jrushlow jrushlow merged commit 775ea29 into symfony:main Feb 6, 2024
5 of 7 checks passed
@jrushlow jrushlow deleted the ci/windows branch February 6, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor Enhancement Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants