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
Copy file name to clipboardexpand all lines: jekyll/_cci2/migrating-from-github.adoc
+8-6
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ This document provides an overview of how to migrate from GitHub Actions to Circ
19
19
[#jobs-and-workflows]
20
20
=== Jobs and workflows
21
21
22
-
Both GitHub Actions and CircleCI share similar concepts around "jobs" and "workflows". A workflow is an end-to-end flow of connected jobs, which in turn consist of commands to achieve an atomic task (e.g. "run unit tests" or "build a Docker image").
22
+
Both GitHub Actions and CircleCI share similar concepts around "jobs" and "workflows". A workflow is an end-to-end flow of connected jobs, which in turn consist of commands to achieve an atomic task (for example, "run unit tests" or "build a Docker image").
23
23
24
24
CircleCI differs primarily in configuration syntax, setting up workflow and job dependencies in a separate section as opposed to inline in the job.
25
25
@@ -122,15 +122,17 @@ docker:
122
122
- image: cimg/openjdk:17.0
123
123
124
124
# Linux Ubuntu Executor
125
-
machine: true
125
+
machine:
126
+
image: ubuntu-2004:202010-01
126
127
127
128
# macOS Executor
128
129
macos:
129
130
xcode: 14.2.0
130
131
131
132
# Windows Executor
132
-
# NOTE: Orb declaration needed. See docs
133
-
executor: win/vs2019
133
+
machine:
134
+
image: 'windows-server-2022-gui:current'
135
+
resource_class: windows.medium # can be medium, large, xlarge, 2xlarge
134
136
----
135
137
136
138
2+| Specifying dependencies/services. All images specified after the first in CircleCI are treated https://circleci.com/docs/configuration-reference/#docker[as dependencies].
@@ -239,8 +241,8 @@ jobs:
239
241
webhook: # WEBHOOK
240
242
----
241
243
242
-
2+| Using conditional steps in the workflow. CircleCI offers https://circleci.com/docs/configuration-reference/#the-when-attribute[basic conditions on steps] (e.g., on_success [default], +
243
-
on_success, on_failure) as well as https://circleci.com/docs/configuration-reference/#the-when-step[conditional steps] based on parameters. We also have https://circleci.com/docs/reusing-config/#using-the-parameters-declaration[conditional jobs], and +
244
+
2+| Using conditional steps in the workflow. CircleCI offers https://circleci.com/docs/configuration-reference/#the-when-attribute[basic conditions on steps] (for example, `on_success` [default], +
245
+
`on_success`, `on_failure`) as well as https://circleci.com/docs/configuration-reference/#the-when-step[conditional steps] based on parameters. We also have https://circleci.com/docs/reusing-config/#using-the-parameters-declaration[conditional jobs], and +
244
246
currently conditional, parameterized workflows and pipelines https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/conditional-workflows.md[are in preview].
0 commit comments