5959 majorVersion=$(echo "$version" | cut -d '.' -f 1)
6060 echo "Major Version: $majorVersion"
6161 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
6763 if : env.MAJOR_VERSION == '3'
6864 run : |
6965 apt-get update && \
@@ -72,14 +68,11 @@ jobs:
7268 wget \
7369 g++ libssl1.0.0 libssl-dev zlib1g-dev && \
7470 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()
8274 uses : codecov/codecov-action@v2
75+
8376 aerospike-4 :
8477 runs-on : ubuntu-latest
8578 services :
@@ -101,7 +94,15 @@ jobs:
10194 - if : always()
10295 uses : ./.github/actions/testagent/logs
10396 - uses : codecov/codecov-action@v2
97+
10498 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'
105106 runs-on : ubuntu-latest
106107 services :
107108 aerospike :
@@ -111,7 +112,7 @@ jobs:
111112 env :
112113 PLUGINS : aerospike
113114 SERVICES : aerospike
114- PACKAGE_VERSION_RANGE : ' 5.5.0 - 5.7.0 '
115+ PACKAGE_VERSION_RANGE : ${{ matrix.range }}
115116 steps :
116117 - uses : actions/checkout@v2
117118 - uses : ./.github/actions/testagent/start
@@ -126,26 +127,18 @@ jobs:
126127 majorVersion=$(echo "$version" | cut -d '.' -f 1)
127128 echo "Major Version: $majorVersion"
128129 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
130134 if : env.MAJOR_VERSION != '3'
131135 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()
146139 uses : ./.github/actions/testagent/logs
147- - if : env.MAJOR_VERSION != '3'
148- uses : codecov/codecov-action@v2
140+ - uses : codecov/codecov-action@v2
141+
149142 amqp10 : # TODO: move rhea to its own job
150143 runs-on : ubuntu-latest
151144 services :
@@ -1247,4 +1240,4 @@ jobs:
12471240 - uses : ./.github/actions/node/latest
12481241 - run : yarn test:plugins:ci
12491242 - if : always()
1250- uses : ./.github/actions/testagent/logs
1243+ uses : ./.github/actions/testagent/logs
0 commit comments