@@ -90,3 +90,214 @@ jobs:
9090 uses : ./
9191 with :
9292 tarantool-version : ' 1.10'
93+
94+ # This test case performs basic test of the three digit version
95+ # support.
96+ #
97+ # It performs the following steps and checks.
98+ #
99+ # - install 1.10.12
100+ # - checks: version, non-cached
101+ # - uninstall tarantool
102+ # - install 1.10.12
103+ # - checks: version, cached
104+ # - install 1.10.LATEST
105+ # - checks: version, non-cached
106+ test-exact-version-basic :
107+ runs-on : ubuntu-latest
108+ env :
109+ TARANTOOL_CACHE_KEY_SUFFIX : -C-${{ github.run_id }}
110+ steps :
111+ - uses : actions/checkout@v2
112+
113+ - id : latest-version
114+ uses : ./.github/actions/latest-version
115+ with :
116+ tarantool-series : ' 1.10'
117+
118+ - name : Install 1.10.12 (non-cached)
119+ uses : ./
120+ with :
121+ tarantool-version : ' 1.10.12'
122+ nightly-build : false
123+
124+ - uses : ./.github/actions/verify-version
125+ with :
126+ tarantool-version : ' 1.10.12-0'
127+ from-cache : false
128+
129+ - name : Uninstall tarantool
130+ run : sudo apt-get -y remove tarantool tarantool-dev tarantool-common
131+
132+ - name : Install 1.10.12 (cached)
133+ uses : ./
134+ with :
135+ tarantool-version : ' 1.10.12'
136+ nightly-build : false
137+
138+ - uses : ./.github/actions/verify-version
139+ with :
140+ tarantool-version : ' 1.10.12-0'
141+ from-cache : true
142+
143+ - name : Install 1.10.LATEST (non-cached)
144+ uses : ./
145+ with :
146+ tarantool-version : ' ${{ steps.latest-version.outputs.abc }}'
147+ nightly-build : false
148+
149+ - uses : ./.github/actions/verify-version
150+ with :
151+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
152+ from-cache : false
153+
154+ # This test case verifies that a two digit version is installed
155+ # without any problem after a three digit version (not a latest
156+ # one).
157+ #
158+ # - install 1.10.12
159+ # - checks: version, non-cached
160+ # - uninstall tarantool
161+ # - install 1.10
162+ # - checks: version, non-cached
163+ test-exact-version-then-two-digit-version :
164+ runs-on : ubuntu-latest
165+ env :
166+ TARANTOOL_CACHE_KEY_SUFFIX : -D-${{ github.run_id }}
167+ steps :
168+ - uses : actions/checkout@v2
169+
170+ - id : latest-version
171+ uses : ./.github/actions/latest-version
172+ with :
173+ tarantool-series : ' 1.10'
174+
175+ - name : Install 1.10.12 (non-cached)
176+ uses : ./
177+ with :
178+ tarantool-version : ' 1.10.12'
179+ nightly-build : false
180+
181+ - uses : ./.github/actions/verify-version
182+ with :
183+ tarantool-version : ' 1.10.12-0'
184+ from-cache : false
185+
186+ - name : Uninstall tarantool
187+ run : sudo apt-get -y remove tarantool tarantool-dev tarantool-common
188+
189+ - name : Install 1.10 (non-cached)
190+ uses : ./
191+ with :
192+ tarantool-version : ' 1.10'
193+ nightly-build : false
194+
195+ - uses : ./.github/actions/verify-version
196+ with :
197+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
198+ from-cache : false
199+
200+ # This test case verifies that a two digit version is installed
201+ # without any problem after a three digit version (the latest
202+ # one).
203+ #
204+ # - install 1.10.LATEST
205+ # - checks: version, non-cached
206+ # - uninstall tarantool
207+ # - install 1.10
208+ # - checks: version, cached
209+ test-exact-version-latest-then-two-digit-version :
210+ runs-on : ubuntu-latest
211+ env :
212+ TARANTOOL_CACHE_KEY_SUFFIX : -E-${{ github.run_id }}
213+ steps :
214+ - uses : actions/checkout@v2
215+
216+ - id : latest-version
217+ uses : ./.github/actions/latest-version
218+ with :
219+ tarantool-series : ' 1.10'
220+
221+ - name : Install 1.10.LATEST (non-cached)
222+ uses : ./
223+ with :
224+ tarantool-version : ' ${{ steps.latest-version.outputs.abc }}'
225+ nightly-build : false
226+
227+ - uses : ./.github/actions/verify-version
228+ with :
229+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
230+ from-cache : false
231+
232+ - name : Uninstall tarantool
233+ run : sudo apt-get -y remove tarantool tarantool-dev tarantool-common
234+
235+ - name : Install 1.10 (cached)
236+ uses : ./
237+ with :
238+ tarantool-version : ' 1.10'
239+ nightly-build : false
240+
241+ - uses : ./.github/actions/verify-version
242+ with :
243+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
244+ from-cache : true
245+
246+ # This test case performs basic test of four digit version
247+ # support (for nightly repositories).
248+ #
249+ # - install 1.10.LATEST.LATEST (nightly)
250+ # - checks: version, non-cached
251+ # - uninstall tarantool
252+ # - install 1.10.LATEST (nightly)
253+ # - checks: version, cached
254+ # - install 1.10 (nightly)
255+ # - checks: version, cached
256+ test-exact-version-nightly :
257+ runs-on : ubuntu-latest
258+ env :
259+ TARANTOOL_CACHE_KEY_SUFFIX : -F-${{ github.run_id }}
260+ steps :
261+ - uses : actions/checkout@v2
262+
263+ - id : latest-version
264+ uses : ./.github/actions/latest-version
265+ with :
266+ tarantool-series : ' 1.10'
267+ nightly-build : true
268+
269+ - name : Install 1.10.LATEST.LATEST (nightly, non-cached)
270+ uses : ./
271+ with :
272+ tarantool-version : ' ${{ steps.latest-version.outputs.abcd }}'
273+ nightly-build : true
274+
275+ - uses : ./.github/actions/verify-version
276+ with :
277+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
278+ from-cache : false
279+
280+ - name : Uninstall tarantool
281+ run : sudo apt-get -y remove tarantool tarantool-dev tarantool-common
282+
283+ - name : Install 1.10.LATEST (nightly, cached)
284+ uses : ./
285+ with :
286+ tarantool-version : ' 1.10'
287+ nightly-build : true
288+
289+ - uses : ./.github/actions/verify-version
290+ with :
291+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
292+ from-cache : true
293+
294+ - name : Install 1.10 (nightly, cached)
295+ uses : ./
296+ with :
297+ tarantool-version : ' 1.10'
298+ nightly-build : true
299+
300+ - uses : ./.github/actions/verify-version
301+ with :
302+ tarantool-version : ' ${{ steps.latest-version.outputs.git-describe }}'
303+ from-cache : true
0 commit comments