Skip to content

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Dec 26, 2021

GH Actions: always use --no-interaction for Composer

Adding --no-interaction to "plain" Composer commands to potentially prevent CI hanging if, for whatever reason, interaction would be needed in the future.

GH Actions: auto-cancel previous builds for same branch

Previously, in Travis, when the same branch was pushed again and the "Auto cancellation" option on the "Settings" page had been turned on (as it was for most repos), any still running builds for the same branch would be stopped in favour of starting the build for the newly pushed version of the branch.

To enable this behaviour in GH Actions, a concurrency configuration needs to be added to each workflow for which this should applied to.

More than anything, this is a way to be kind to GitHub by not wasting resources which they so kindly provide to us for free.

Refs:

GH Actions: update for the release of PHP 8.1

Don't allow PHP 8.1 to fail anymore and start testing against PHP 8.2.

Adding `--no-interaction` to "plain" Composer commands to potentially prevent CI hanging if, for whatever reason, interaction would be needed in the future.
Previously, in Travis, when the same branch was pushed again and the "Auto cancellation" option on the "Settings" page had been turned on (as it was for most repos), any still running builds for the same branch would be stopped in favour of starting the build for the newly pushed version of the branch.

To enable this behaviour in GH Actions, a `concurrency` configuration needs to be added to each workflow for which this should applied to.

More than anything, this is a way to be kind to GitHub by not wasting resources which they so kindly provide to us for free.

Refs:
* https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/
* https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
Don't allow PHP 8.1 to fail anymore and start testing against PHP 8.2.
@jrfnl jrfnl force-pushed the feature/ghactions-various-updates branch from 26c189e to 0fc6b62 Compare December 27, 2021 21:03
@rdohms rdohms added the CI This issue or pull request is related to the build process label Feb 13, 2022
@rdohms rdohms merged commit 0afc0f2 into rdohms:master Feb 13, 2022
@rdohms
Copy link
Owner

rdohms commented Feb 13, 2022

As usual you are a legend, thanks @jrfnl

@jrfnl jrfnl deleted the feature/ghactions-various-updates branch February 13, 2022 15:22
@jrfnl
Copy link
Collaborator Author

jrfnl commented Feb 13, 2022

You're welcome ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI This issue or pull request is related to the build process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants