-
Notifications
You must be signed in to change notification settings - Fork 18
691 lines (662 loc) · 24.5 KB
/
server_compatibility.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
name: Test Server Backwards Compatibility
on:
workflow_dispatch:
inputs:
organization_name:
description: Name of the organization to build JARs from. If you want to run the tests with the JARs from your fork, set this to your username.
required: true
default: hazelcast
branch_name:
description: Name of the branch to build JARs from
required: true
default: master
hz_version:
description: Version of the JARs that will be built, without the SNAPSHOT suffix.
required: true
default: "5.0"
run_python:
description: Whether or not to run Python client tests. Set to something else to not run the tests.
required: true
default: run
run_nodejs:
description: Whether or not to run Node.js client tests. Set to something else to not run the tests.
required: true
default: run
run_cpp:
description: Whether or not to run CPP client tests. Set to something else to not run the tests.
required: true
default: run
run_csharp:
description: Whether or not to run Csharp client tests. Set to something else to not run the tests.
required: true
default: run
run_go:
description: Whether or not to run Go client tests. Set to something else to not run the tests.
required: true
default: run
jobs:
upload_jars:
name: Create and upload JARs
runs-on: ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout to test artifacts
uses: actions/checkout@v2
with:
repository: hazelcast/private-test-artifacts
path: certs
ref: data
token: ${{ secrets.GH_PAT }}
- name: Checkout to Hazelcast
uses: actions/checkout@v2
with:
repository: ${{ github.event.inputs.organization_name }}/hazelcast
path: hazelcast
ref: ${{ github.event.inputs.branch_name }}
- name: Checkout to Hazelcast Enterprise
uses: actions/checkout@v2
with:
repository: ${{ github.event.inputs.organization_name }}/hazelcast-enterprise
path: hazelcast-enterprise
ref: ${{ github.event.inputs.branch_name }}
token: ${{ secrets.GH_PAT }}
- name: Checkout to scripts
uses: actions/checkout@v2
with:
path: master
- name: Build JARs
run: mvn clean install -DskipTests=True
working-directory: hazelcast
- name: Build Enterprise JARs
run: mvn clean install -DskipTests=True
working-directory: hazelcast-enterprise
- name: Upload Hazelcast JAR
uses: actions/upload-artifact@v2
with:
name: hazelcast
path: hazelcast/hazelcast/target/hazelcast-*[!s].jar
retention-days: 1
- name: Upload Hazelcast SQL JAR (if exists)
uses: actions/upload-artifact@v2
with:
name: hazelcast-sql
path: hazelcast/hazelcast-sql/target/hazelcast-sql-*[!s].jar
if-no-files-found: ignore
retention-days: 1
- name: Upload Hazelcast tests JAR
uses: actions/upload-artifact@v2
with:
name: hazelcast-tests
path: hazelcast/hazelcast/target/hazelcast-*-tests.jar
retention-days: 1
- name: Upload Hazelcast Enterprise JAR
uses: actions/upload-artifact@v2
with:
name: hazelcast-enterprise
path: hazelcast-enterprise/hazelcast-enterprise/target/hazelcast-enterprise-*[!s].jar
retention-days: 1
- name: Rename certs.jar as Hazelcast Enterprise tests JAR
run: |
HZ_TESTS_JAR_NAME=$(basename $(ls $GITHUB_WORKSPACE/hazelcast/hazelcast/target/hazelcast-*-tests.jar))
HZ_ENTERPRISE_TESTS_JAR_NAME=$(echo $HZ_TESTS_JAR_NAME | sed "s/hazelcast/hazelcast-enterprise/")
mv certs.jar $HZ_ENTERPRISE_TESTS_JAR_NAME
working-directory: certs
- name: Upload certificates as Hazelcast Enterprise tests JAR
uses: actions/upload-artifact@v2
with:
name: hazelcast-enterprise-tests
path: certs/hazelcast-enterprise-*-tests.jar
retention-days: 1
setup_python_client_matrix:
name: Setup the Python client test matrix
if: ${{ github.event.inputs.run_python == 'run' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Set client matrix
id: set-matrix
run: echo "::set-output name=matrix::$( python get_client_matrix.py --client py --option tag --use-latest-patch-versions )"
test_python_clients:
needs: [ upload_jars, setup_python_client_matrix ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
client_tag: ${{ fromJson(needs.setup_python_client_matrix.outputs.matrix) }}
server_kind: [ os, enterprise ]
name: Test Python client ${{ matrix.client_tag }} with ${{ matrix.server_kind }} server
steps:
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout to master
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-python-client
path: master
ref: master
- name: Checkout to tag
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-python-client
path: tag
ref: ${{ matrix.client_tag }}
- name: Copy the client code into master
run: |
rm -rf $GITHUB_WORKSPACE/master/hazelcast
cp -a $GITHUB_WORKSPACE/tag/hazelcast $GITHUB_WORKSPACE/master/hazelcast
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-test.txt
working-directory: master
- name: Download Hazelcast tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-tests
path: jars
- name: Download Hazelcast SQL JAR (if exists)
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: hazelcast-sql
path: jars
- name: Download Hazelcast JAR
if: ${{ matrix.server_kind == 'os' }}
uses: actions/download-artifact@v2
with:
name: hazelcast
path: jars
- name: Download Hazelcast Enterprise JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise
path: jars
- name: Download Hazelcast Enterprise tests JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise-tests
path: jars
- name: Start RC
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
run: python start_rc.py --rc-version '0.8-SNAPSHOT' --jars jars --server-kind ${{ matrix.server_kind }} --use-simple-server
- name: Run non-enterprise tests
if: ${{ matrix.server_kind == 'os' }}
run: pytest -m 'not enterprise' tests/integration/backward_compatible
working-directory: master
- name: Run all tests
if: ${{ matrix.server_kind == 'enterprise' }}
run: pytest tests/integration/backward_compatible
working-directory: master
setup_nodejs_client_matrix:
name: Setup the Node.js client test matrix
if: ${{ github.event.inputs.run_nodejs == 'run' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Set client matrix
id: set-matrix
run: echo "::set-output name=matrix::$( python get_client_matrix.py --client node --option tag --use-latest-patch-versions )"
test_nodejs_clients:
needs: [ upload_jars, setup_nodejs_client_matrix ]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
client_tag: ${{ fromJson(needs.setup_nodejs_client_matrix.outputs.matrix) }}
server_kind: [ os, enterprise ]
name: Test Node.js client ${{ matrix.client_tag }} with ${{ matrix.server_kind }} server
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout to master
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-nodejs-client
path: master
ref: master
- name: Checkout to tag
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-nodejs-client
path: tag
ref: ${{ matrix.client_tag }}
- name: Install dependencies and compile client
run: |
npm install
npm run compile
working-directory: tag
- name: Install test dependencies
run: |
npm install
working-directory: master
- name: Copy client code into master
run: |
rm -rf $GITHUB_WORKSPACE/master/lib
rm $GITHUB_WORKSPACE/master/package.json
cp -a $GITHUB_WORKSPACE/tag/lib $GITHUB_WORKSPACE/master/lib
cp -a $GITHUB_WORKSPACE/tag/package.json $GITHUB_WORKSPACE/master/package.json
- name: Download Hazelcast tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-tests
path: jars
- name: Download Hazelcast SQL JAR (if exists)
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: hazelcast-sql
path: jars
- name: Download Hazelcast JAR
if: ${{ matrix.server_kind == 'os' }}
uses: actions/download-artifact@v2
with:
name: hazelcast
path: jars
- name: Download Hazelcast Enterprise JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise
path: jars
- name: Download Hazelcast Enterprise tests JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise-tests
path: jars
- name: Start RC
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
run: python start_rc.py --rc-version '0.8-SNAPSHOT' --jars jars --server-kind ${{ matrix.server_kind }}
- name: Run non-enterprise tests
if: ${{ matrix.server_kind == 'os' }}
run: node node_modules/mocha/bin/mocha --recursive test/integration/backward_compatible
working-directory: master
- name: Run all tests
if: ${{ matrix.server_kind == 'enterprise' }}
run: node node_modules/mocha/bin/mocha --recursive test/integration/backward_compatible
working-directory: master
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
setup_csharp_client_matrix:
name: Setup the Csharp client test matrix
if: ${{ github.event.inputs.run_csharp == 'run' }}
runs-on: windows-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Set client matrix
id: set-matrix
run: echo "::set-output name=matrix::$( python get_client_matrix.py --client cs --option tag --use-latest-patch-versions )"
test_csharp_clients:
needs: [ upload_jars, setup_csharp_client_matrix ]
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
client_tag: ${{ fromJson(needs.setup_csharp_client_matrix.outputs.matrix) }}
server_kind: [ os, enterprise ]
name: Test Csharp client ${{ matrix.client_tag }} with ${{ matrix.server_kind }} server
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
- name: Checkout to tag
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-csharp-client
path: tag
ref: ${{ matrix.client_tag }}
- name: Download Hazelcast tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-tests
path: tag/temp/lib
- name: Download Hazelcast SQL JAR (if exists)
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: hazelcast-sql
path: tag/temp/lib
- name: Download Hazelcast JAR
if: ${{ matrix.server_kind == 'os' }}
uses: actions/download-artifact@v2
with:
name: hazelcast
path: tag/temp/lib
- name: Download Hazelcast Enterprise JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise
path: tag/temp/lib
- name: Download Hazelcast Enterprise tests JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise-tests
path: tag/temp/lib
- name: Update submodules
run: |
git submodule update --init
working-directory: tag
- name: Detect Client Version
shell: pwsh
run: |
$client = "${{matrix.client_tag}}".replace("v","")
"CLIENT_VERSION=$client" >> $env:GITHUB_ENV
- uses: madhead/semver-utils@latest
id: version
with:
version: ${{ env.CLIENT_VERSION }}
compare-to: 5.2.x
satisfies: x
- name: Client Version
run: |
echo "${{steps.version.outputs.major}}.${{steps.version.outputs.minor }}.${{steps.version.outputs.patch }}"
- name: Backport SSL Tests and hz script for client < 5.2.0
id: backport-tests
if: ${{ ((steps.version.outputs.major == '5' && steps.version.outputs.minor < '2') || ( steps.version.outputs.major == '5' && steps.version.outputs.minor == '2' && steps.version.outputs.patch < '2') || (steps.version.outputs.major == '4')) }}
shell: pwsh
working-directory: tag
run: |
cp ${{github.workspace}}\utils\net\hz-latest.ps1 ${{github.workspace}}\tag\hz-latest.ps1
cp ${{github.workspace}}\utils\net\utils.ps1 ${{github.workspace}}\tag\build\utils.ps1
./hz-latest.ps1 copy-files -copy-files-source ${{github.workspace}}\utils\net\ssl
- name: Build
shell: pwsh
working-directory: tag
run: |
./hz.ps1 clean, build
- name: Build Client 4.0.2 with compatibility
if: ${{ steps.version.outputs.major == '4' && steps.version.outputs.minor == '0' }}
shell: pwsh
working-directory: tag
run: |
./hz-latest.ps1 clean, build
- name: Run non-enterprise tests
if: ${{ matrix.server_kind == 'os' && steps.backport-tests.outcome == 'skipped' }}
shell: pwsh
run: |
./hz.ps1 test -tf "method != SendReceive" -server ${{ github.event.inputs.hz_version }}-SNAPSHOT
working-directory: tag
env:
HAZELCAST_SERVER_VERSION: ${{ github.event.inputs.hz_version }}
- name: Run non-enterprise tests with compatibility
if: ${{ matrix.server_kind == 'os' && steps.backport-tests.outcome == 'success' }}
shell: pwsh
run: |
./hz-latest.ps1 test -tf "method != SendReceive" -server ${{ github.event.inputs.hz_version }}-SNAPSHOT
working-directory: tag
env:
HAZELCAST_SERVER_VERSION: ${{ github.event.inputs.hz_version }}
- name: Run all tests
if: ${{ matrix.server_kind == 'enterprise' && steps.backport-tests.outcome == 'skipped' }}
shell: pwsh
run: |
./hz.ps1 -enterprise -tf "method != SendReceive" -server ${{ github.event.inputs.hz_version }}-SNAPSHOT test ${{ secrets.GH_PAT }}
working-directory: tag
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
HAZELCAST_SERVER_VERSION: ${{ github.event.inputs.hz_version }}
- name: Run all tests with compatibility
if: ${{matrix.server_kind == 'enterprise' && steps.backport-tests.outcome == 'success'}}
shell: pwsh
run: |
./hz-latest.ps1 -enterprise -tf "method != SendReceive" -server ${{ github.event.inputs.hz_version }}-SNAPSHOT test ${{ secrets.GH_PAT }}
working-directory: tag
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
HAZELCAST_SERVER_VERSION: ${{ github.event.inputs.hz_version }}
# upload logs
- name: Upload RC and Server logs
uses: actions/upload-artifact@v3
if: always()
with:
name: Rc-Server-logs-${{ matrix.client_tag }}-${{ matrix.server_kind }}
path: '${{github.workspace}}\tag\temp\rc\' # entire directory
setup_cpp_client_matrix:
name: Setup the Cpp client test matrix
if: ${{ github.event.inputs.run_cpp == 'run' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Set client matrix
id: set-matrix
run: echo "::set-output name=matrix::$( python get_client_matrix.py --client cpp --option tag --use-latest-patch-versions )"
test_cpp_clients:
needs: [ upload_jars, setup_cpp_client_matrix ]
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
client_tag: ${{ fromJson(needs.setup_cpp_client_matrix.outputs.matrix) }}
server_kind: [ enterprise ] #TODO When tests are divided as OS, ENTERPRISE, OS matrix will be added
name: Test CPP client ${{ matrix.client_tag }} with ${{ matrix.server_kind }} server
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout master
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-cpp-client
path: master
- name: Checkout to tag
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-cpp-client
path: tag
ref: ${{ matrix.client_tag }}
- name: Delete old scripts and get new ones
run: |
rm -rf tag/scripts
cp -R master/scripts tag/
- name: Install Necessary Packages
run: |
sudo apt-get update
sudo apt-get install -y net-tools libssl-dev gdb
working-directory: tag
- name: Install Boost
run: |
sudo ./scripts/install-boost.sh 1.76.0
working-directory: tag
- name: Install Thrift
run: |
sudo ./scripts/install-thrift.sh 0.13.0
working-directory: tag
- name: Download Hazelcast tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-tests
path: tag
- name: Download Hazelcast SQL JAR (if exists)
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: hazelcast-sql
path: tag
- name: Download Hazelcast JAR
if: ${{ matrix.server_kind == 'os' }}
uses: actions/download-artifact@v2
with:
name: hazelcast
path: tag
- name: Download Hazelcast Enterprise JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise
path: tag
- name: Download Hazelcast Enterprise tests JAR
if: ${{ matrix.server_kind == 'enterprise' }}
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise-tests
path: tag
- name: Build & Install
env:
BUILD_DIR: build
run: |
./scripts/build-unix.sh \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_SHARED_LIBS=ON \
-DWITH_OPENSSL=ON \
-DBUILD_TESTS=ON \
-DBUILD_EXAMPLES=OFF
working-directory: tag
- name: Test
env:
BUILD_DIR: build
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
GTEST_FILTER: -*Aws*:*DescribeInstancesTest*
HZ_VERSION: '${{ github.event.inputs.hz_version }}-SNAPSHOT'
run: |
ulimit -c unlimited
sudo sh -c "echo 'core' > /proc/sys/kernel/core_pattern"
sudo sh -c "echo '1' > /proc/sys/kernel/core_uses_pid"
./scripts/test-unix.sh
working-directory: tag
setup_go_client_matrix:
name: Setup the Go client test matrix
if: ${{ github.event.inputs.run_go == 'run' }}
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout to scripts
uses: actions/checkout@v2
- name: Set client matrix
id: set-matrix
run: echo "::set-output name=matrix::$( python get_client_matrix.py --client go --option tag --use-latest-patch-versions )"
test_go_client:
needs: [upload_jars, setup_go_client_matrix]
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
client_tag: ${{ fromJson(needs.setup_go_client_matrix.outputs.matrix) }}
name: Test Go client ${{ matrix.client_tag }} with enterprise server on ubuntu-latest
steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Checkout the ${{ matrix.client_tag }}
uses: actions/checkout@v2
with:
repository: hazelcast/hazelcast-go-client
path: client
ref: ${{ matrix.client_tag }}
- name: Download Hazelcast tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-tests
path: client
- name: Download Hazelcast JAR
uses: actions/download-artifact@v2
with:
name: hazelcast
path: client
- name: Download Hazelcast SQL JAR (if exists)
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: hazelcast-sql
path: client
- name: Download Hazelcast Enterprise JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise
path: client
- name: Download Hazelcast Enterprise tests JAR
uses: actions/download-artifact@v2
with:
name: hazelcast-enterprise-tests
path: client
- name: Test
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
HZ_VERSION: '${{ github.event.inputs.hz_version }}-SNAPSHOT'
SSL_ENABLED: 1
run: |
./rc.sh start
make test-all
working-directory: client