-
Book Overview & Buying
-
Table Of Contents
React Application Architecture for Production - Second Edition
By :
For automating our CI/CD pipeline, we will use GitHub Actions, a platform built directly into GitHub. We define automated workflows that run in response to things that happen in our repository, like a push or a pull request, and GitHub takes care of running them. There is no external CI server to set up or maintain.
Before we write our first workflow, let's get familiar with the key concepts so we can understand the terminology used in GitHub Actions.
A workflow is an automated process made up of one or more jobs. We define workflows as YAML files inside the .github/workflows folder of our repository. A workflow runs whenever a specific event fires such as a push or a pull request. We can also trigger one manually from the GitHub UI using the workflow_dispatch event. A repository can have as many workflows as we need.
An event is what kicks off a workflow. It could be something like pushing code to the repository, opening a pull request, or even...