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

Fix outdated PHPStan version in GHA workflow #368

Merged
merged 2 commits into from Oct 1, 2021
Merged

Conversation

schlessera
Copy link
Collaborator

@schlessera schlessera commented Oct 1, 2021

We are seeing repeated issues with caching of the PHPStan executable. The GHA cache cannot be invalidated, so the download for the PHPStan binary is sometimes stale for an undetermined time period.

This PR changes the workflow to use PHPStan as a Setup-PHP action tool, instead of from the Composer binary in the cache. The Composer binary is still left as a test dependency for local setups.

For easier debugging, this PR also outputs the version of PHPStan being used before running the analysis.

@schlessera schlessera added the Testing Issues related with Unit, E2E, Smoke, and other testing requirements/needs label Oct 1, 2021
@schlessera schlessera added this to the 0.8.0 milestone Oct 1, 2021
@schlessera schlessera changed the title Show version of PHPStan in workflow Fix outdated PHPStan version in GHA workflow Oct 1, 2021
@schlessera schlessera merged commit b55f5e6 into main Oct 1, 2021
@schlessera schlessera deleted the add/phpstan-version branch October 1, 2021 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing Issues related with Unit, E2E, Smoke, and other testing requirements/needs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant