diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index f4cfe708..6d5f57ac 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -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 @@ -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' @@ -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 @@ -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' @@ -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' @@ -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 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index dd68b2f6..801b7194 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 @@ -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' @@ -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 @@ -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' @@ -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 @@ -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'