44 orb-tools : circleci/orb-tools@11.5
55
66filters : &filters
7+ branches :
8+ only : /.*/
79 tags :
810 only : /.*/
911
1012jobs :
13+ normal-checkout :
14+ docker :
15+ - image : cimg/base:stable
16+ steps :
17+ - checkout
18+ - run : git tag --list
1119 # Define one or more jobs which will utilize your orb's commands and parameters to validate your changes.
1220 integration-test-checkout :
1321 docker :
@@ -19,13 +27,24 @@ jobs:
1927 - image : cimg/base:stable
2028 steps :
2129 - git-shallow-clone/checkout_advanced
30+ integration-test-checkout_advanced_alpine :
31+ docker :
32+ - image : circleci/redis:6.2.1-alpine
33+ steps :
34+ - run : apk update && apk add openssh git # openssh is required
35+ - git-shallow-clone/checkout_advanced
2236 integration-test-checkout_advanced_fetchoptions :
2337 docker :
2438 - image : cimg/base:stable
2539 steps :
2640 - git-shallow-clone/checkout_advanced :
2741 clone_options : " --depth 100 --single-branch"
2842 fetch_options : " --depth 5"
43+ integration-test-checkout_advanced_macos :
44+ macos :
45+ xcode : 15.0.0 # see: https://circleci.com/docs/using-macos/
46+ steps :
47+ - git-shallow-clone/checkout_advanced
2948 integration-test-checkout_advanced_notags :
3049 docker :
3150 - image : cimg/base:stable
4867 exit 1
4968 fi
5069 fi
70+ integration-test-checkout_advanced_sourcecaching :
71+ docker :
72+ - image : cimg/base:stable
73+ steps :
74+ - restore_cache :
75+ keys :
76+ - &source-cache source-v1-checkoutadvanced-{{ .Branch }}-{{ .Revision }}
77+ - source-v1-checkoutadvanced-{{ .Branch }}-
78+ - source-v1-checkoutadvanced-
79+ - git-shallow-clone/checkout_advanced
80+ - save_cache :
81+ key : *source-cache
82+ paths :
83+ - " .git"
5184 integration-test-checkout_advanced_tags :
5285 docker :
5386 - image : cimg/base:stable
6396 if [ $count -eq 0 ]; then exit 1; fi
6497 integration-test-checkout_alpine :
6598 docker :
66- - image : circleci/redis:alpine3.13
99+ - image : circleci/redis:6.2.1-alpine
67100 steps :
68101 - run : apk update && apk add openssh git # openssh is required
69102 - git-shallow-clone/checkout
94127 keyscan_github : true
95128 integration-test-checkout_macos :
96129 macos :
97- xcode : 13 .0.0
130+ xcode : 15 .0.0 # see: https://circleci.com/docs/using-macos/
98131 steps :
99132 - git-shallow-clone/checkout
100133 integration-test-checkout_notags :
@@ -124,6 +157,20 @@ jobs:
124157 steps :
125158 - git-shallow-clone/checkout :
126159 path : src
160+ integration-test-checkout_sourcechching :
161+ docker :
162+ - image : cimg/base:stable
163+ steps :
164+ - restore_cache :
165+ keys :
166+ - &source-cache source-v1-checkout-{{ .Branch }}-{{ .Revision }}
167+ - source-v1-checkout-{{ .Branch }}-
168+ - source-v1-checkout-
169+ - git-shallow-clone/checkout
170+ - save_cache :
171+ key : *source-cache
172+ paths :
173+ - " .git"
127174 integration-test-checkout_tags :
128175 docker :
129176 - image : cimg/base:stable
@@ -156,14 +203,22 @@ workflows:
156203 # jobs and commands to ensure they behave as expected. or, run other
157204 # integration tests of your choosing
158205 # Run any integration tests defined within the `jobs` key.
206+ - normal-checkout :
207+ filters : *filters
159208 - integration-test-checkout :
160209 filters : *filters
161210 - integration-test-checkout_advanced :
162211 filters : *filters
212+ - integration-test-checkout_advanced_alpine :
213+ filters : *filters
163214 - integration-test-checkout_advanced_fetchoptions :
164215 filters : *filters
216+ # - integration-test-checkout_advanced_macos:
217+ # filters: *filters
165218 - integration-test-checkout_advanced_notags :
166219 filters : *filters
220+ - integration-test-checkout_advanced_sourcecaching :
221+ filters : *filters
167222 - integration-test-checkout_advanced_tags :
168223 filters : *filters
169224 - integration-test-checkout_alpine :
@@ -182,6 +237,8 @@ workflows:
182237 filters : *filters
183238 - integration-test-checkout_path :
184239 filters : *filters
240+ - integration-test-checkout_sourcechching :
241+ filters : *filters
185242 - integration-test-checkout_tags :
186243 filters : *filters
187244 - integration-test-api-dispatch :
@@ -197,7 +254,9 @@ workflows:
197254 - orb-tools/pack
198255 - integration-test-checkout
199256 - integration-test-checkout_advanced
257+ - integration-test-checkout_advanced_alpine
200258 - integration-test-checkout_advanced_fetchoptions
259+ # - integration-test-checkout_advanced_macos
201260 - integration-test-checkout_advanced_notags
202261 - integration-test-checkout_advanced_tags
203262 - integration-test-checkout_alpine
0 commit comments