Skip to content

Commit

Permalink
ci: Run CI tests against Serverless v3
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Oct 4, 2022
1 parent 78795be commit 6fbdde1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
windowsNode14:
name: '[Windows] Node.js v14: Unit tests'
runs-on: windows-latest
strategy:
matrix:
sls-version: [2, 3]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -48,7 +51,7 @@ jobs:
run: python -m pip install pipenv==2021.11.5 poetry

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
Expand All @@ -61,6 +64,9 @@ jobs:
linuxNode14:
name: '[Linux] Node.js 14: Unit tests'
runs-on: ubuntu-latest
strategy:
matrix:
sls-version: [2, 3]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -96,7 +102,7 @@ jobs:
run: python -m pip install pipenv==2021.11.5 poetry

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

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

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
Expand All @@ -157,6 +163,9 @@ jobs:
tagIfNewVersion:
name: Tag if new version
runs-on: ubuntu-latest
strategy:
matrix:
sls-version: [2, 3]
needs: [windowsNode14, linuxNode14, linuxNode12]
steps:
- name: Checkout repository
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
linuxNode14:
name: '[Linux] Node.js v14: Lint, Eventual Commitlint, Eventual Changelog, Formatting & Unit tests'
runs-on: ubuntu-latest
strategy:
matrix:
sls-version: [2, 3]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -61,7 +64,7 @@ jobs:
run: python -m pip install pipenv==2021.11.5 poetry

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
Expand All @@ -88,6 +91,9 @@ jobs:
windowsNode14:
name: '[Windows] Node.js v14: Unit tests'
runs-on: windows-latest
strategy:
matrix:
sls-version: [2, 3]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -125,7 +131,7 @@ jobs:
run: python -m pip install pipenv==2021.11.5 poetry

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
Expand All @@ -138,6 +144,9 @@ jobs:
linuxNode12:
name: '[Linux] Node.js v12: Unit tests'
runs-on: ubuntu-latest
strategy:
matrix:
sls-version: [2, 3]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -175,7 +184,7 @@ jobs:
run: python -m pip install pipenv==2021.11.5 poetry

- name: Install serverless
run: npm install -g serverless@2
run: npm install -g serverless@${{ matrix.sls-version }}

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 6fbdde1

Please sign in to comment.