-
-
Notifications
You must be signed in to change notification settings - Fork 20
Introduce before_script
which will be executed prior the command
#102
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
Conversation
…he command Signed-off-by: Maximilian Bösing <[email protected]>
d6b6001
to
9c920cc
Compare
Is this some sort of |
They might stop something in case they fail. We do have that |
So lets take the So instead someone has to pass |
I don't fully understand how this new syntax is different, and whether it's supposed to replace the old one (to be deprecated, I suppose?) 🤔 |
What syntax? Not sure if we are talking about the same thing.
So the latter would be stuff like:
The current way of doing so would be polluting the JOB JSON by doing: {"...": "...", "command": "xmllint psalm.xml.dist && vendor/bin/psalm --shepherd --no-cache --whatever"} IMHO, this is not really readable and thus I would prefer something like: {"...": "...", "command": "vendor/bin/psalm --shepherd --no-cache --whatever", "gatekeeper_commands": ["xmllint psalm.xml.dist"]} (Still open to rename the property tho) |
So, if I understand it correctly, Looking good, just probably better to call it |
Exactly. Not sure if this is really necessary tho but given the fact that we do have some stuff depending on the commands name (BC compatibility for exclusion logic), adding additional stuff to the
Sounds good, will adjust the code when I find some time for it. Thanks! |
before_script
which will be executed prior the command
Signed-off-by: Maximilian Bösing <[email protected]>
Gitlab uses `before_script` as well and therefore, using this to keep some kind of familiar naming seems legit. Signed-off-by: Maximilian Bösing <[email protected]>
a96d3cb
to
c56cd9e
Compare
…itted when `before_script` is being passed Signed-off-by: Maximilian Bösing <[email protected]>
I've renamed I also created #104 to have an additional laminas-continuous-integration-action/entrypoint.sh Lines 195 to 199 in c2d713a
laminas-continuous-integration-action/entrypoint.sh Lines 201 to 209 in c2d713a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Thanks @boesing
Description
This adds the possibility to pass gatekeeping commands to the action without actually polluting the real command.
XmlLint
against tool configurations (PHPUnit, PHPCS, Psalm) laminas-ci-matrix-action#31, we want to introduce linting of phpunit, psalm, etc. configuration fileslowest
orlatest
(due to the constraint^1.0 || ^2.0 || ^3.0
)xmlstarlet
magic to modifyconvertDeprecationsToExceptions
setting withinphpunit.xml.dist
in https://github.com/laminas/laminas-component-installer/blob/3c998d2b2755985c71cd4d5d9b294228f63d3a65/.laminas-ci.json#L6All these quirks could be passed via that new JOB property instead of passing consecutive commands via the
command
property.I am open to rename the property, I simply did not found a better naming (yet).