Using GitHub Actions
GitHub Actions is a CI/CD tool that allows us to automate, build, test, and deploy pipelines. We can create workflows that run on a specific event in the repository.
To understand how it works, let’s have a look at some of its components in the following sections.
Workflows
A workflow is a process that can run one or more jobs. We can define them in YAML format within the .github/workflows
folder. Workflows can be run when a specified event is triggered. We can also re-run workflows manually directly from GitHub. A repository can have as many workflows as we want.
Events
An event, when fired, will cause the workflow to run. GitHub activities can trigger events, such as pushing to the repository or creating a pull request. Besides that, they can also be started on a schedule or via HTTP POST requests.
Jobs
A job defines a series of steps that will be executed in a workflow. A step can be either an action or a script that can be executed...