Skip to content

Commit 0d99bc8

Browse files
committed
3 matrix
1 parent 03efaee commit 0d99bc8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/ci-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
module: [ core, flink ]
39+
module: [ core, flink, lake ]
4040
name: "${{ matrix.module }}"
4141
steps:
4242
- name: Checkout code

.github/workflows/stage.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@
1919

2020
STAGE_CORE="core"
2121
STAGE_FLINK="flink"
22+
STAGE_LAKE="lake"
2223

2324
MODULES_FLINK="\
2425
fluss-flink,\
2526
fluss-flink/fluss-flink-common,\
2627
fluss-flink/fluss-flink-2.1,\
2728
fluss-flink/fluss-flink-1.20,\
29+
"
30+
31+
# we move Flink legacy version tests to "lake" module for balancing testing time
32+
MODULES_LAKE="\
2833
fluss-flink/fluss-flink-1.19,\
2934
fluss-flink/fluss-flink-1.18,\
3035
fluss-lake,\
@@ -37,7 +42,10 @@ function get_test_modules_for_stage() {
3742
local stage=$1
3843

3944
local modules_flink=$MODULES_FLINK
40-
local modules_core=\!${MODULES_FLINK//,/,\!}
45+
local modules_lake=$MODULES_LAKE
46+
local negated_flink=\!${MODULES_FLINK//,/,\!}
47+
local negated_lake=\!${MODULES_LAKE//,/,\!}
48+
local modules_core="$negated_flink,$negated_lake"
4149

4250
case ${stage} in
4351
(${STAGE_CORE})
@@ -46,6 +54,9 @@ function get_test_modules_for_stage() {
4654
(${STAGE_FLINK})
4755
echo "-pl fluss-test-coverage,$modules_flink"
4856
;;
57+
(${STAGE_LAKE})
58+
echo "-pl fluss-test-coverage,$modules_lake"
59+
;;
4960
esac
5061
}
5162

0 commit comments

Comments
 (0)