Setup my first github workflow action
Recently I want to try auto build on the project on github, I just post a project fileupdater, which is used to update files with regular…
Recently I want to try auto build on the project on github, I just post a project fileupdater, which is used to update files with regular expression and golang, so I want to have a test on this project.
When I clicked the actions tab on the github, it suggests me to add the go build action, and click the button, it will add a file go.yml
under .github/workflows
folder. The default content for the go.yml
is like below:
The default setting works for me, after I commit the code, the action will run automatically, the default setting is run build on ubuntu-latest
container, it will get the image and get the codes, and then run build
and test
jobs.
The following picture is get from my project.
There are a lot of settings and functions on github’s workflow, and I can add it to most of my projects, it will help me to solve the problem earlier.