December 2021
Intermediate to advanced
510 pages
11h 20m
English
Try these exercises to improve the skills you learned:
Add another step to the pipeline: code linting using golangci-lint. For more information consult its home page.[38]
Add gocyclo to the pipeline. Capture its output and return an error if gocyclo returns any functions with a complexity score of 10 or greater. For more information about this tool, consult its GitHub page.[39]
Add environment variables to handle Git authentication with remote repositories that require it.
Add another command-line flag to your tool asking for the Git branch to push. Update the Git step to accept a configurable branch instead of master.
Get the Pipeline configuration from a file instead of hard-coding it in the run function.
Read now
Unlock full access