1010
1111** Continuous Integration (CI)** is a software development practice where developers frequently merge their code changes
1212into a shared repository. Each time code is added or updated, automated processes build the application and run tests
13- to verify that everything still works correctly. This verification workflow is exactly the process we went through in
14- the last episode:
13+ to verify that everything still works correctly. A basic verification workflow is exactly the process we went
14+ through in the last episode:
1515
1616* Prepare the environment
1717* Build the application
@@ -58,7 +58,7 @@ and GitLab to make sure this is the case:
5858
5959 The [EESSI GitLab Component](https://gitlab.com/explore/catalog/eessi/gitlab-eessi) also exists, and this allows
6060 you to follow a very similar approach to that described
61- here for GitHub. At the end of the episode we will provide the equivalent file needed to enable GitLab CI.
61+ here for GitHub. Near the end of the episode we will provide the equivalent file needed to enable GitLab CI.
6262
6363The first thing we need to do is to translate our workflow into something that the workflow tool, GitHub Actions in
6464this case, can understand. GitHub itself has
@@ -199,7 +199,7 @@ To github.com:vlad/cicd-demo.git
199199 * [new branch] add_ci_to_project -> add_ci_to_project
200200...
201201```
202- (where ` vlad ` is replaced by your own GitHub user handle). Let's go ahead and create the pull request lile the text
202+ (where ` vlad ` is replaced by your own GitHub user handle). Let's go ahead and create the pull request like the text
203203suggested by visiting the URL. Once we open the link, we can modify the title/description if we wish, but otherwise
204204we can just go ahead and click "Create pull request".
205205
@@ -287,8 +287,8 @@ will become a green tick which indicates that our CI for the commit has passed.
287287
288288### What happens when CI fails?
289289
290- What does a failure look like in CI? From the previous episode, we know that if we do not load the ` buildenv ` module
291- our tests should fail. Let's
290+ What does a real failure look like in CI? From the previous episode, we know that if we do not load the ` buildenv `
291+ module our tests should fail. Let's
292292construct that scenario, by commenting out the line that loads that module:
293293``` yaml title="ci.yml"
294294--8<-- "scripts/ci-broken.yml"
@@ -301,7 +301,7 @@ git commit -m "Don't load buildenv, which should break our CI"
301301git push origin add_ci_to_project
302302```
303303
304- Eventually, as expected, our CI will fail and we will get a red X beside our commit. We should also receive an email
304+ Eventually, as expected, our CI will fail and we will get a red ` X ` beside our commit. We should also receive an email
305305notification that our CI has failed. Such notifications are a critical part of CI, the value of CI is not just that
306306the tests run silently, but that we are made aware immediately when things go wrong.
307307
0 commit comments