-
Notifications
You must be signed in to change notification settings - Fork 11
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
Implement Format Checks for Groovy Code in GitHub Actions Workflow #16
Implement Format Checks for Groovy Code in GitHub Actions Workflow #16
Conversation
Jenkins Declarative Pipeline is not exactly groovy, but simple text scripts that use a Pipeline DSL (domain-specific language) based on the Groovy programming language. |
3799e0d
to
c4d16fc
Compare
Yeah agreed! also |
08cb474
to
818eeb0
Compare
49fa233
to
875710b
Compare
Although there are warnings and informational messages, there are zero errors reported. I believe that means the code compiles and functions as intended. btw though checks fails we maybe need to improve code style! |
Signed-off-by: karim mdmirajul <[email protected]>
875710b
to
d066966
Compare
In this change, I have implemented a new GitHub Actions workflow named "Format-checks". This workflow is triggered on every push and pull request to the 'main' branch.
This change will help to ensure that all Groovy code in the repository adheres to our coding standards and best practices, and will prevent code with formatting errors from being merged into the 'main' branch.
--failon error -The command will cause the workflow to fail if any errors are detected by GroovyLint.