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

Mark action as failed on error in minification process #3

Closed
C0pyR1ght opened this issue Apr 20, 2020 · 5 comments · Fixed by #4
Closed

Mark action as failed on error in minification process #3

C0pyR1ght opened this issue Apr 20, 2020 · 5 comments · Fixed by #4
Assignees
Labels
enhancement New feature or request

Comments

@C0pyR1ght
Copy link
Contributor

I think it would be helpful to set the action as failed if for example a Parse error occurs during minification process because the scoped files are not actually minified and therefore the goal not reached.

Several Times I had some minor typos within the files to me minified that lead to a Parse error. Therefore the file was obviously not commited to the repo but the action was always marked as successfull which is very missleading. You have to manually dive through the action logs to discover the failed minification process.

@nizarmah
Copy link
Owner

Hello @C0pyR1ght ( :

You are totally right! I will get to work on that as soon as possible. Thank you for the issue and the recommendation :D

I'll keep track of this issue in my commits and pull requests so you can see the progress ( :

@nizarmah nizarmah added the enhancement New feature or request label Apr 21, 2020
@nizarmah nizarmah self-assigned this Apr 21, 2020
nizarmah added a commit that referenced this issue Apr 21, 2020
Added certain functions to minify a file based on its type. Separated the minify function from the command used to minify the file.

This will make it easier to deal with the issue #3 and throw an error once a command returns an error and doesn't run successfully.
nizarmah added a commit that referenced this issue Apr 21, 2020
@nizarmah
Copy link
Owner

Alright, so here's a quick update. I implemented the code necessary. I just need to launch a Docker image and test it for myself. Once it passes the tests I want, I'll pull and update the action! ( :

@nizarmah nizarmah linked a pull request Apr 21, 2020 that will close this issue
@nizarmah
Copy link
Owner

Testing Log can be found in Auto-Minify-Test/Issues#3.

image

@nizarmah
Copy link
Owner

Alright, updated the action in the marketplace.

Use the latest version, v1.5 and it should work as you wish ( :

Thanks a lot for the recommendation!

@nizarmah
Copy link
Owner

Kindly let me know if there is anything other way I can improve the Action 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants