Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Make the github test action run out of the box independent of the choice of testing framework #6555

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 1 commit into from
Feb 27, 2025

Conversation

ndeblauw
Copy link
Contributor

Summary

This PR changes the test runner for the github action to php artisan test

Why This Change?

The included github testing action executes ./vendor/bin/phpunit but when pest is chosen, this results in an error.
I know it's easy to fix (and the error message tells you exactly what to do, that is, run ./vendor/bin/pest), but wouldn't it be nicer if it would just work out of the box?

Testing & Compatibility

No runtime behavior changes
Compatible with existing Laravel applications.

@flavio-schoute
Copy link

It doesn't matter much, because .github doesn't come along anyway when you create a new Laravel project, it's convenient in itself, suppose you copy tests.yml, yeah then you don't have to modify it....

@ndeblauw
Copy link
Contributor Author

[...] .github doesn't come along anyway when you create a new Laravel project [...]

It does come along! I have created 3 projects by now (with the Herd New Project button) and every time it did come along. Resulting immediately in an email reporting failing action, as soon as I connected the repo to my Github account.

@mfn
Copy link
Contributor

mfn commented Feb 27, 2025

It does not come along when you use e.g. composer create-project laravel/laravel test-l12

The .github folder is also explicitly listed not to be exported

/.github export-ignore

Seems Laravel Herd is doing something else.

@michaeldyrynda
Copy link
Contributor

The starter kits don’t have the .github directory set to export-ignore, but the main Laravel template repo does.

Possibly an oversight - would need to remove it from .gitattributes here as well.

@maru0914
Copy link
Contributor

maru0914 commented Feb 27, 2025

laravel/installer#401
I think the PR above has solved this issue, and Laravel Herd will be updated with the latest version of laravel/installer.

@taylorotwell taylorotwell merged commit 540728e into laravel:12.x Feb 27, 2025
6 checks passed
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.

6 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.