1313 linuxNode14 :
1414 name : ' [Linux] Node.js v14: Lint, Eventual Commitlint, Eventual Changelog, Formatting & Unit tests'
1515 runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ sls-version : [2, 3]
1619 steps :
1720 - name : Checkout repository
1821 uses : actions/checkout@v2
6164 run : python -m pip install pipenv==2021.11.5 poetry
6265
6366 - name : Install serverless
64- run : npm install -g serverless@2
67+ run : npm install -g serverless@${{ matrix.sls-version }}
6568
6669 - name : Install dependencies
6770 if : steps.cacheNpm.outputs.cache-hit != 'true'
8891 windowsNode14 :
8992 name : ' [Windows] Node.js v14: Unit tests'
9093 runs-on : windows-latest
94+ strategy :
95+ matrix :
96+ sls-version : [2, 3]
9197 steps :
9298 - name : Checkout repository
9399 uses : actions/checkout@v2
@@ -125,7 +131,7 @@ jobs:
125131 run : python -m pip install pipenv==2021.11.5 poetry
126132
127133 - name : Install serverless
128- run : npm install -g serverless@2
134+ run : npm install -g serverless@${{ matrix.sls-version }}
129135
130136 - name : Install dependencies
131137 if : steps.cacheNpm.outputs.cache-hit != 'true'
@@ -138,6 +144,9 @@ jobs:
138144 linuxNode12 :
139145 name : ' [Linux] Node.js v12: Unit tests'
140146 runs-on : ubuntu-latest
147+ strategy :
148+ matrix :
149+ sls-version : [2, 3]
141150 steps :
142151 - name : Checkout repository
143152 uses : actions/checkout@v2
@@ -175,7 +184,7 @@ jobs:
175184 run : python -m pip install pipenv==2021.11.5 poetry
176185
177186 - name : Install serverless
178- run : npm install -g serverless@2
187+ run : npm install -g serverless@${{ matrix.sls-version }}
179188
180189 - name : Install dependencies
181190 if : steps.cacheNpm.outputs.cache-hit != 'true'
0 commit comments