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: run workflows more selectively #131

Merged
merged 1 commit into from
May 24, 2023

Commits on May 14, 2023

  1. GH Actions: run workflows more selectively

    Only run the workflows when there is a chance that the result of the workflow run will be different from before.
    
    The path selection is set up to cast a wide net to make the risk of the workflows not running when the build could potentially break as small as possible.
    
    This means that, aside from files of the type being checked in the workflow changing, the workflow will also run when:
    * The configuration used changes.
    * Dependencies used in the workflow may potentially have changed.
    * Composer scripts used in the workflow may potentially have changed.
    * Shell scripts used in the workflow have changed.
    * The workflow itself changes.
    * Miscellaneous related files have changed.
    
    Note: the lists of files _may_ include some files which don't currently exist in the repo (like `.eslintignore`) for consistency across workflows and to prevent issues if/when such file(s) would be introduced to the repo.
    
    Also note that, as this repo does not contain a committed `composer.lock` file, the path selection is done via `paths-ignore` instead of via `paths`!
    jrfnl committed May 14, 2023
    Configuration menu
    Copy the full SHA
    0a1432e View commit details
    Browse the repository at this point in the history