@@ -27,23 +27,50 @@ jobs:
2727 steps :
2828 - git-shallow-clone/checkout
2929 integration-test-checkout_advanced :
30+ docker :
31+ - image : cimg/base:stable
32+ steps :
33+ - git-shallow-clone/checkout_advanced
34+ integration-test-checkout_advanced_fetchoptions :
3035 docker :
3136 - image : cimg/base:stable
3237 steps :
3338 - git-shallow-clone/checkout_advanced :
3439 clone_options : ' --shallow-since "5 days ago"'
3540 fetch_options : ' --shallow-since "5 days ago"'
41+ integration-test-checkout_advanced_notags :
42+ docker :
43+ - image : cimg/base:stable
44+ steps :
45+ - git-shallow-clone/checkout_advanced :
46+ clone_options : " --depth 1"
47+ fetch_options : " --depth 1000 --no-tags"
48+ tag_fetch_options : " --no-tags"
49+ # should be no tags
50+ - run : |
51+ set -e
52+ git tag --list
53+ count=$(git tag --list | wc -l)
54+ if [ $count -ne 0 ]; then exit 1; fi
55+ integration-test-checkout_advanced_tags :
56+ docker :
57+ - image : cimg/base:stable
58+ steps :
59+ - git-shallow-clone/checkout_advanced :
60+ clone_options : " --depth 1"
61+ fetch_options : " --depth 1000"
62+ # should be all tags in fetch depth
63+ - run : |
64+ set -e
65+ git tag --list
66+ count=$(git tag --list | wc -l)
67+ if [ $count -eq 0 ]; then exit 1; fi
3668 integration-test-checkout_alpine :
3769 docker :
3870 - image : circleci/redis:alpine3.13
3971 steps :
4072 - run : apk update && apk add openssh git # openssh is required
4173 - git-shallow-clone/checkout
42- integration-test-checkout_macos :
43- macos :
44- xcode : 13.0.0
45- steps :
46- - git-shallow-clone/checkout
4774 integration-test-checkout_depth :
4875 docker :
4976 - image : cimg/base:stable
@@ -69,12 +96,42 @@ jobs:
6996 steps :
7097 - git-shallow-clone/checkout :
7198 keyscan_github : true
99+ integration-test-checkout_macos :
100+ macos :
101+ xcode : 13.0.0
102+ steps :
103+ - git-shallow-clone/checkout
104+ integration-test-checkout_notags :
105+ docker :
106+ - image : cimg/base:stable
107+ steps :
108+ - git-shallow-clone/checkout :
109+ fetch_depth : 1000
110+ no_tags : true
111+ # should be no tags
112+ - run : |
113+ set -e
114+ git tag --list
115+ count=$(git tag --list | wc -l)
116+ if [ $count -ne 0 ]; then exit 1; fi
72117 integration-test-checkout_path :
73118 docker :
74119 - image : cimg/base:stable
75120 steps :
76121 - git-shallow-clone/checkout :
77122 path : src
123+ integration-test-checkout_tags :
124+ docker :
125+ - image : cimg/base:stable
126+ steps :
127+ - git-shallow-clone/checkout :
128+ fetch_depth : 1000
129+ # should be all tags in fetch depth
130+ - run : |
131+ set -e
132+ git tag --list
133+ count=$(git tag --list | wc -l)
134+ if [ $count -eq 0 ]; then exit 1; fi
78135
79136workflows :
80137 # Prior to producing a development orb (which requires credentials) basic validation, linting, and even unit testing can be performed.
@@ -107,13 +164,18 @@ workflows:
107164 # Run any integration tests defined within the `jobs` key.
108165 - integration-test-checkout
109166 - integration-test-checkout_advanced
167+ - integration-test-checkout_advanced_fetchoptions
168+ - integration-test-checkout_advanced_notags
169+ - integration-test-checkout_advanced_tags
110170 - integration-test-checkout_alpine
111- - integration-test-checkout_macos
112171 - integration-test-checkout_depth
113172 - integration-test-checkout_fetchdepth
114173 - integration-test-checkout_keyscan_bitbucket
115174 - integration-test-checkout_keyscan_github
175+ - integration-test-checkout_macos
176+ - integration-test-checkout_notags
116177 - integration-test-checkout_path
178+ - integration-test-checkout_tags
117179
118180 # Publish a semver version of the orb. relies on
119181 # the commit subject containing the text "[semver:patch|minor|major|skip]"
@@ -129,13 +191,18 @@ workflows:
129191 requires :
130192 - integration-test-checkout
131193 - integration-test-checkout_advanced
194+ - integration-test-checkout_advanced_fetchoptions
195+ - integration-test-checkout_advanced_notags
196+ - integration-test-checkout_advanced_tags
132197 - integration-test-checkout_alpine
133- - integration-test-checkout_macos
134198 - integration-test-checkout_depth
135199 - integration-test-checkout_fetchdepth
136200 - integration-test-checkout_keyscan_bitbucket
137201 - integration-test-checkout_keyscan_github
202+ - integration-test-checkout_macos
203+ - integration-test-checkout_notags
138204 - integration-test-checkout_path
205+ - integration-test-checkout_tags
139206 filters :
140207 branches :
141208 only :
0 commit comments