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

GH Actions: use fail-fast with setup-php when creating the binaries #131

Merged
merged 1 commit into from
Dec 11, 2022

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 11, 2022

The recent build failure was due to the setup-php action running into a rate limit and not downloading the required version of Composer (2.2), which meant that the PHAR ended up being build with Composer 2.4.

The setup-php action runner defaults to showing these type errors in the logs, but not stopping the workflow run.

For the creation of the binary it is really important that the correct Composer version is used as otherwise the PHAR file won't be compatible with PHP 5.3 - 5.5.

So, specifically for those jobs, I'm adding the fail-fast option to setup-php to fail the build if the action runner ran into any errors.

Ref: https://github.com/shivammathur/setup-php#fail-fast-optional

The recent build failure was due to the `setup-php` action running into a rate limit and not downloading the required version of Composer (`2.2`), which meant that the PHAR ended up being build with Composer 2.4.

The `setup-php` action runner defaults to _showing_ these type errors in the logs, but not stopping the workflow run.

For the creation of the binary it is really important that the correct Composer version is used as otherwise the PHAR file won't be compatible with PHP 5.3 - 5.5.

So, specifically for those jobs, I'm adding the `fail-fast` option to `setup-php` to fail the build if the action runner ran into any errors.

Ref: https://github.com/shivammathur/setup-php#fail-fast-optional
@jrfnl jrfnl added this to the 2.0.0 milestone Dec 11, 2022
@jrfnl jrfnl requested a review from grogy December 11, 2022 06:45
@grogy
Copy link
Member

grogy commented Dec 11, 2022

Thank you, merged :-)

@grogy grogy merged commit c389ed6 into develop Dec 11, 2022
@grogy grogy deleted the feature/ghactions-fail-setup-php branch December 11, 2022 07:15
jrfnl added a commit that referenced this pull request Dec 20, 2022
Follow up on PR #131

Oops... realized I implemented it incorrectly. Fixed now.
grogy pushed a commit that referenced this pull request Dec 26, 2022
Follow up on PR #131

Oops... realized I implemented it incorrectly. Fixed now.
@jrfnl jrfnl modified the milestones: 2.0.0, 1.3.x Next Mar 16, 2024
grogy pushed a commit that referenced this pull request Mar 27, 2024
Follow up on PR #131

Oops... realized I implemented it incorrectly. Fixed now.
jrfnl added a commit that referenced this pull request Mar 27, 2024
Follow up on PR #131

Oops... realized I implemented it incorrectly. Fixed now.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants