Skip to content

Commit ecada81

Browse files
ci: test with 3.0
1 parent cd65fe2 commit ecada81

File tree

1 file changed

+46
-14
lines changed

1 file changed

+46
-14
lines changed

.github/workflows/test_on_push.yaml

Lines changed: 46 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ jobs:
4141
- tarantool-version: "2.11"
4242
external-merger-version: "0.0.5"
4343
external-keydef-version: "0.0.4"
44-
- tarantool-version: "master"
45-
metrics-version: "1.0.0"
44+
- tarantool-version: "3.0.0"
4645
vshard-version: "0.1.25"
4746
fail-fast: false
4847
# Can't install older versions on 22.04,
@@ -51,8 +50,8 @@ jobs:
5150
steps:
5251
- uses: actions/checkout@master
5352

54-
- name: Setup Tarantool CE
55-
if: matrix.tarantool-version != 'master'
53+
- name: Setup Tarantool CE (1.x, 2.x)
54+
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
5655
uses: tarantool/setup-tarantool@v2
5756
with:
5857
tarantool-version: ${{ matrix.tarantool-version }}
@@ -63,6 +62,20 @@ jobs:
6362
sudo apt install -y tt
6463
tt version
6564
65+
- name: Cache Tarantool 3.x
66+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
67+
id: cache-v3
68+
uses: actions/cache@v3
69+
with:
70+
path: "${GITHUB_WORKSPACE}/bin"
71+
key: cache-${{ matrix.tarantool-version }}
72+
73+
- name: Setup Tarantool CE (3.x)
74+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) && steps.cache-latest.outputs.cache-hit != 'true' }}
75+
run: |
76+
tt init
77+
tt install tarantool ${{ matrix.tarantool-version }}
78+
6679
- name: Get Tarantool master latest commit
6780
if: matrix.tarantool-version == 'master'
6881
run: |
@@ -78,14 +91,14 @@ jobs:
7891
path: "${GITHUB_WORKSPACE}/bin"
7992
key: cache-latest-${{ env.LATEST_COMMIT }}
8093

81-
- name: Setup Tarantool master
94+
- name: Setup Tarantool CE (master)
8295
if: matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
8396
run: |
8497
tt init
8598
tt install tarantool master
8699
87-
- name: Add Tarantool master to PATH
88-
if: matrix.tarantool-version == 'master'
100+
- name: Add tt Tarantool to PATH
101+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
89102
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
90103

91104
- name: Fix luarocks in Tarantool CE 1.10.6
@@ -139,16 +152,15 @@ jobs:
139152
metrics-version: ["1.0.0"]
140153
cartridge-version: ["2.8.0"]
141154
include:
142-
- tarantool-version: "master"
143-
metrics-version: "1.0.0"
155+
- tarantool-version: "3.0.0"
144156
vshard-version: "0.1.25"
145157
fail-fast: false
146158
runs-on: ubuntu-20.04
147159
steps:
148160
- uses: actions/checkout@master
149161

150-
- name: Setup Tarantool CE
151-
if: matrix.tarantool-version != 'master'
162+
- name: Setup Tarantool CE (1.x, 2.x)
163+
if: ${{ startsWith( matrix.tarantool-version, '1.' ) || startsWith( matrix.tarantool-version, '2.' ) }}
152164
uses: tarantool/setup-tarantool@v2
153165
with:
154166
tarantool-version: ${{ matrix.tarantool-version }}
@@ -159,6 +171,20 @@ jobs:
159171
sudo apt install -y tt
160172
tt version
161173
174+
- name: Cache Tarantool 3.x
175+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) }}
176+
id: cache-v3
177+
uses: actions/cache@v3
178+
with:
179+
path: "${GITHUB_WORKSPACE}/bin"
180+
key: cache-${{ matrix.tarantool-version }}
181+
182+
- name: Setup Tarantool CE (3.x)
183+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) && steps.cache-latest.outputs.cache-hit != 'true' }}
184+
run: |
185+
tt init
186+
tt install tarantool ${{ matrix.tarantool-version }}
187+
162188
- name: Get Tarantool master latest commit
163189
if: matrix.tarantool-version == 'master'
164190
run: |
@@ -174,14 +200,14 @@ jobs:
174200
path: "${GITHUB_WORKSPACE}/bin"
175201
key: cache-latest-${{ env.LATEST_COMMIT }}
176202

177-
- name: Setup Tarantool master
203+
- name: Setup Tarantool CE (master)
178204
if: matrix.tarantool-version == 'master' && steps.cache-latest.outputs.cache-hit != 'true'
179205
run: |
180206
tt init
181207
tt install tarantool master
182208
183-
- name: Add Tarantool master to PATH
184-
if: matrix.tarantool-version == 'master'
209+
- name: Add tt Tarantool to PATH
210+
if: ${{ startsWith( matrix.tarantool-version, '3.' ) || matrix.tarantool-version == 'master' }}
185211
run: echo "${GITHUB_WORKSPACE}/bin" >> $GITHUB_PATH
186212

187213
- name: Install requirements for community
@@ -216,6 +242,12 @@ jobs:
216242
bundle: "tarantool-enterprise-sdk-nogc64-2.11.0-0-r563.linux.x86_64"
217243
metrics-version: ["", "1.0.0"]
218244
cartridge-version: ["2.8.0"]
245+
include:
246+
- tarantool-version:
247+
folder: "3.0"
248+
bundle: "tarantool-enterprise-sdk-gc64-3.0.0-0-gf58f7d82a-r23.linux.x86_64"
249+
vshard-version: "0.1.25"
250+
219251
fail-fast: false
220252
runs-on: ubuntu-20.04
221253
steps:

0 commit comments

Comments
 (0)