You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [Getting started with GitHub Codespaces](https://docs.github.com/en/codespaces/overview)
106
106
- [Defining dev containers](https://docs.github.com/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers)
107
-
- [Code with Codespaces](https://github.com/skills/code-with-codespaces)
107
+
- [GitHub Skills: Code with Codespaces](https://github.com/skills/code-with-codespaces)
@@ -102,27 +100,29 @@ Next is [Cypress](https://github.com/marketplace/actions/cypress-io), which will
102
100
103
101
Withtheworkflowcreated, let's push it to the repository. Typically you would create a [pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests) for any new code (which this is). To streamline the process, we'regoingtopushstraighttomainaswe'll be exploring pull requests and the [GitHub flow](https://docs.github.com/en/get-started/quickstart/github-flow) in a later exercise. You'llstartbyobtainingthenumberofthe [issueyoucreatedearlier](./2-issues.md), creatingacommitforthenewcode, thenpushingittomain.
1. List all issues for the repository by entering the following command in the terminal window and pressing <kbd>Enter</kbd> (or <kbd>Return</kbd> on a Mac):
1. List all issues for the repository by entering the following command in the terminal window:
107
107
108
108
```bash
109
109
ghissuelist
110
110
```
111
111
112
112
1. Note the issue number for the one titled **Implement testing**.
113
-
1. Stage all files by entering the following command in the terminal window and pressing <kbd>Enter</kbd> (or <kbd>Return</kbd> on a Mac):
113
+
1. Stage all files by entering the following command in the terminal window:
114
114
115
115
```bash
116
116
gitadd .
117
117
```
118
118
119
-
1. Commit all changes with a message by entering the following command in the terminal window and pressing <kbd>Enter</kbd> (or <kbd>Return</kbd> on a Mac), replacing **<ISSUE_NUMBER>** with the number for the **Implement testing** issue:
119
+
1. Commit all changes with a message by entering the following command in the terminal window, replacing **<ISSUE_NUMBER>** with the number for the **Implement testing** issue:
120
120
121
121
```bash
122
122
gitcommit-m"Resolves #<ISSUE_NUMBER>"
123
123
```
124
124
125
-
1. Push all changes to the repository by entering the following command in the terminal window and pressing <kbd>Enter</kbd> (or <kbd>Return</kbd> on a Mac):
125
+
1. Push all changes to the repository by entering the following command in the terminal window:
126
126
127
127
```bash
128
128
gitpush
@@ -138,13 +138,24 @@ Pushing the workflow definition to the repository counts as a push to `main`, me
138
138
139
139
1. Return to your repository.
140
140
1. Select the **Actions** tab.
141
-
1. Select the name of the action on the left side.
142
-
1. Note the test running (and eventually failing). You can click the name of the action to see the individual steps, and the logs provided by those steps.
141
+
1. Select **End-to-end tests** on the left side.
142
+
1. Note the tests running on the right side with a message of **Resolves <ISSUE_NUMBER>**, matching the commit message you used (and eventually failing).
143
143
144
-
## Summary and next steps
144
+

145
145
146
-
Implementing continuous integration and continuous deployment is critical to successful DevOps. Automating these processes ensures consistency and reduces the workload required for developers and administrators. You have created a workflow to run tests on any new code for your codebase.
146
+
1. When the test fails, select the name of the run (which should be similar to **Resolves <ISSUE_NUMBER>**). You will see the results of the test, which will be similar to the screenshot below:
147
147
148
-
Let's turn our attention to [adding code to our project](./5-coding.md).
148
+

149
+
150
+
You've now seen a workflow, and explore the details of a run!
151
+
152
+
## Summary and next steps
153
+
154
+
Congratulations! You've implemented automated testing, a standard part of continuous integration, which is critical to successful DevOps. Automating these processes ensures consistency and reduces the workload required for developers and administrators. You have created a workflow to run tests on any new code for your codebase. Let's turn our attention to [adding code to our project](./5-coding.md).
Copy file name to clipboardExpand all lines: content/guided-workshop/exercises/7-create-environment.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,6 @@ Let's create variables for the name of the resource group and your prefix:
114
114
115
115
You've now configured Azure and added secrets & variables to your repository. You're now ready to create the workflow! This workflow will run on-demand, and create the resources on Azure. This will both make it easier to create everything and ensure it's done correctly.
116
116
117
-
Previously you created a workflow by using the **Actions** tab in your repository. While this works, it's not always ideal as you will often want better support from your editor. Since workflows are defined as [YML](https://en.wikipedia.org/wiki/YAML) files
118
-
119
117
1. Return to your codespace.
120
118
1. If the **Terminal** window isn't already open, open it by pressing <kbd>Ctl</kbd> - <kbd>`</kbd> on your keyboard.
121
119
1. Switch to the `main` branch, pull any changes currently on the server to your codespace, and create a new branch by entering the following commandin the terminal window and pressing <kbd>Enter</kbd> (or <kbd>Return</kbd> on a Mac):
0 commit comments