# GitHub Actions
Example of workflow:
The on:
is the conditions that trigger the workflow.
The Jobs:
definition, runs-on
, then steps:
, each step can have a name, in this case we are using the communite action to checkout our code from github, actions/checkout@v2
. Then we can run:
a command in anothe step.
The second Job
will be a test job, each job needs to specify in which machine it wil run on. We will use the needs:
key to specify dependencies, so the test job will not execute until the build job is completed.
Example of Gitflow