Skip to content

GH Actions: various workflow tweaks #46

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 4 commits into from
Apr 8, 2021

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Apr 7, 2021

GH Actions: allow for manually triggering a workflow

Triggering a workflow for a branch manually is not supported by default in GH Actions, but has to be explicitly allowed.

This is useful if, for instance, an external action script or composer dependency has broken.
Once a fix is available, failing builds for open PRs can be retriggered manually instead of having to be re-pushed to retrigger the workflow.

Ref: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/

GH Actions: report CS violations in the PR

The cs2pr tool will allow to display the results from an action run in checkstyle format in-line in the PR code view, which should improve usability of the workflow results.

Ref: https://github.com/staabm/annotate-pull-request-from-checkstyle

GH Actions: be explicit about versions and test against 8.1

This adds an "experimental" build against PHP 8.1 as an early detection system for compatibility issues. This build is allowed to fail.

GH Actions: improve readability of the job title

When the PHP version nr is provided as a string, the full text will show in the title, otherwise, for PHP 8.0, it would be cut off to 8 (float to integer cast).

jrfnl added 4 commits April 7, 2021 23:38
Triggering a workflow for a branch manually is not supported by default in GH Actions, but has to be explicitly allowed.

This is useful if, for instance, an external action script or composer dependency has broken.
Once a fix is available, failing builds for open PRs can be retriggered manually instead of having to be re-pushed to retrigger the workflow.

Ref: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
The cs2pr tool will allow to display the results from an action run in checkstyle format in-line in the PR code view, which should improve usability of the workflow results.

Ref: https://github.com/staabm/annotate-pull-request-from-checkstyle
This adds an "experimental" build against PHP 8.1 as an early detection system for compatibility issues. This build is allowed to fail.
When the PHP version nr is provided as a string, the full text will show in the `title`, otherwise, for PHP 8.0, it would be cut off to `8` (float to integer cast).
Copy link
Owner

@rdohms rdohms left a comment

Choose a reason for hiding this comment

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

Wow, nice stuff!

@rdohms rdohms merged commit 4384891 into rdohms:master Apr 8, 2021
@rdohms rdohms added the CI This issue or pull request is related to the build process label Apr 8, 2021
@jrfnl jrfnl deleted the feature/ghactions-various-tweaks branch April 8, 2021 12:18
@rdohms rdohms added this to the v0.3.0 milestone Apr 22, 2021
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