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: selectively use fail-fast with setup-php #194

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 11, 2022

Proposed Changes

I've seen some recent build failures (elsewhere) due to the setup-php action running into a rate limit and not downloading the required version of Composer. In the case of this package, that would make the test runs worthless.

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

So, specifically for those jobs where the Composer version is important, 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

I've seen some recent build failures due to the `setup-php` action running into a rate limit and not downloading the required version of Composer. In the case of this package, that would make the test runs worthless.

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

So, specifically for those jobs where the Composer version is important, 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
Copy link
Member

@Potherca Potherca left a comment

Choose a reason for hiding this comment

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

👍

@jrfnl jrfnl merged commit 4ff0459 into master Dec 16, 2022
@jrfnl jrfnl deleted the feature/ghactions-fail-setup-php branch December 16, 2022 11:07
jrfnl added a commit that referenced this pull request Dec 20, 2022
Follow up on PR #194

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants