Skip to content

Commit 6fbdde1

Browse files
committed
ci: Run CI tests against Serverless v3
1 parent 78795be commit 6fbdde1

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/integrate.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
windowsNode14:
1414
name: '[Windows] Node.js v14: Unit tests'
1515
runs-on: windows-latest
16+
strategy:
17+
matrix:
18+
sls-version: [2, 3]
1619
steps:
1720
- name: Checkout repository
1821
uses: actions/checkout@v2
@@ -48,7 +51,7 @@ jobs:
4851
run: python -m pip install pipenv==2021.11.5 poetry
4952

5053
- name: Install serverless
51-
run: npm install -g serverless@2
54+
run: npm install -g serverless@${{ matrix.sls-version }}
5255

5356
- name: Install dependencies
5457
if: steps.cacheNpm.outputs.cache-hit != 'true'
@@ -61,6 +64,9 @@ jobs:
6164
linuxNode14:
6265
name: '[Linux] Node.js 14: Unit tests'
6366
runs-on: ubuntu-latest
67+
strategy:
68+
matrix:
69+
sls-version: [2, 3]
6470
steps:
6571
- name: Checkout repository
6672
uses: actions/checkout@v2
@@ -96,7 +102,7 @@ jobs:
96102
run: python -m pip install pipenv==2021.11.5 poetry
97103

98104
- name: Install serverless
99-
run: npm install -g serverless@2
105+
run: npm install -g serverless@${{ matrix.sls-version }}
100106

101107
- name: Install dependencies
102108
if: steps.cacheNpm.outputs.cache-hit != 'true'
@@ -144,7 +150,7 @@ jobs:
144150
run: python -m pip install pipenv==2021.11.5 poetry
145151

146152
- name: Install serverless
147-
run: npm install -g serverless@2
153+
run: npm install -g serverless@${{ matrix.sls-version }}
148154

149155
- name: Install dependencies
150156
if: steps.cacheNpm.outputs.cache-hit != 'true'
@@ -157,6 +163,9 @@ jobs:
157163
tagIfNewVersion:
158164
name: Tag if new version
159165
runs-on: ubuntu-latest
166+
strategy:
167+
matrix:
168+
sls-version: [2, 3]
160169
needs: [windowsNode14, linuxNode14, linuxNode12]
161170
steps:
162171
- name: Checkout repository

.github/workflows/validate.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
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
@@ -61,7 +64,7 @@ jobs:
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'
@@ -88,6 +91,9 @@ jobs:
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

Comments
 (0)