59
59
majorVersion=$(echo "$version" | cut -d '.' -f 1)
60
60
echo "Major Version: $majorVersion"
61
61
echo "MAJOR_VERSION=$majorVersion" >> $GITHUB_ENV
62
- - name : Check package version
63
- if : env.MAJOR_VERSION == '3'
64
- run : |
65
- echo "Package version is 3. Proceeding with the next steps."
66
- - name : Install dependencies
62
+ - name : Install dependencies and run tests
67
63
if : env.MAJOR_VERSION == '3'
68
64
run : |
69
65
apt-get update && \
@@ -72,14 +68,11 @@ jobs:
72
68
wget \
73
69
g++ libssl1.0.0 libssl-dev zlib1g-dev && \
74
70
npm install -g yarn
75
- - if : env.MAJOR_VERSION == '3'
76
- run : yarn install --ignore-engines
77
- - if : env.MAJOR_VERSION == '3'
78
- uses : ./.github/actions/node/14
79
- - if : env.MAJOR_VERSION == '3'
80
- run : yarn test:plugins:ci
81
- - if : env.MAJOR_VERSION == '3'
71
+ yarn install --ignore-engines
72
+ yarn test:plugins:ci
73
+ - if : always()
82
74
uses : codecov/codecov-action@v2
75
+
83
76
aerospike-4 :
84
77
runs-on : ubuntu-latest
85
78
services :
@@ -101,7 +94,15 @@ jobs:
101
94
- if : always()
102
95
uses : ./.github/actions/testagent/logs
103
96
- uses : codecov/codecov-action@v2
97
+
104
98
aerospike-5 :
99
+ strategy :
100
+ matrix :
101
+ node-version : [16]
102
+ range : ['5.5.0 - 5.7.0']
103
+ include :
104
+ - node-version : 20
105
+ range : ' >=5.8.0'
105
106
runs-on : ubuntu-latest
106
107
services :
107
108
aerospike :
@@ -111,7 +112,7 @@ jobs:
111
112
env :
112
113
PLUGINS : aerospike
113
114
SERVICES : aerospike
114
- PACKAGE_VERSION_RANGE : ' 5.5.0 - 5.7.0 '
115
+ PACKAGE_VERSION_RANGE : ${{ matrix.range }}
115
116
steps :
116
117
- uses : actions/checkout@v2
117
118
- uses : ./.github/actions/testagent/start
@@ -126,26 +127,18 @@ jobs:
126
127
majorVersion=$(echo "$version" | cut -d '.' -f 1)
127
128
echo "Major Version: $majorVersion"
128
129
echo "MAJOR_VERSION=$majorVersion" >> $GITHUB_ENV
129
- - name : Check package version
130
+ - uses : actions/setup-node@v3
131
+ with :
132
+ node-version : ${{ matrix.node-version }}
133
+ - name : Install dependencies and run tests
130
134
if : env.MAJOR_VERSION != '3'
131
135
run : |
132
- echo "Package version is not 3. Proceeding with the next steps."
133
- - if : env.MAJOR_VERSION != '3'
134
- run : yarn install --ignore-engines
135
- - if : env.MAJOR_VERSION != '3'
136
- uses : ./.github/actions/node/oldest
137
- - if : env.MAJOR_VERSION != '3'
138
- run : yarn test:plugins:ci
139
- - if : env.MAJOR_VERSION != '3'
140
- run : echo "PACKAGE_VERSION_RANGE=>=5.8.0" >> "$GITHUB_ENV"
141
- - if : env.MAJOR_VERSION != '3'
142
- uses : ./.github/actions/node/20 # currently the latest version of aerospike only supports node 20
143
- - if : env.MAJOR_VERSION != '3'
144
- run : yarn test:plugins:ci
145
- - if : env.MAJOR_VERSION != '3'
136
+ yarn install --ignore-engines
137
+ yarn test:plugins:ci
138
+ - if : always()
146
139
uses : ./.github/actions/testagent/logs
147
- - if : env.MAJOR_VERSION != '3'
148
- uses : codecov/codecov-action@v2
140
+ - uses : codecov/codecov-action@v2
141
+
149
142
amqp10 : # TODO: move rhea to its own job
150
143
runs-on : ubuntu-latest
151
144
services :
@@ -1247,4 +1240,4 @@ jobs:
1247
1240
- uses : ./.github/actions/node/latest
1248
1241
- run : yarn test:plugins:ci
1249
1242
- if : always()
1250
- uses : ./.github/actions/testagent/logs
1243
+ uses : ./.github/actions/testagent/logs
0 commit comments