Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Temporarily minimize testing matrix #799

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 2 additions & 55 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,65 +10,12 @@ env:
FORCE_COLOR: 1

jobs:
windowsNode14:
name: '[Windows] Node.js v14: Unit tests'
runs-on: windows-latest
strategy:
matrix:
sls-version: [2, 3]
pipenv-version: ['2022.8.5', '2022.8.13']
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Retrieve dependencies from cache
id: cacheNpm
uses: actions/cache@v2
with:
path: |
~/.npm
node_modules
key: npm-v14-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
restore-keys: npm-v14-${{ runner.os }}-${{ github.ref }}-

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Node.js and npm
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Check python version
run: |
python --version

- name: Install setuptools
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry

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

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
run: |
npm update --no-save
npm update --save-dev --no-save
- name: Unit tests
run: npm test

linuxNode14:
name: '[Linux] Node.js 14: Unit tests'
runs-on: ubuntu-latest
strategy:
matrix:
sls-version: [2, 3]
pipenv-version: ['2022.8.5', '2022.8.13']
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -101,7 +48,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry
run: python -m pip install pipenv poetry

- name: Install serverless
run: npm install -g serverless@${{ matrix.sls-version }}
Expand All @@ -117,7 +64,7 @@ jobs:
tagIfNewVersion:
name: Tag if new version
runs-on: ubuntu-latest
needs: [windowsNode14, linuxNode14]
needs: [linuxNode14]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
61 changes: 1 addition & 60 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ jobs:
strategy:
matrix:
sls-version: [2, 3]
pipenv-version: ['2022.8.5', '2022.8.13', '2023.7.4', '2023.7.9']
# pipenv 2202.8.13 marks deprecation of pipenv lock --requirements
# https://github.com/pypa/pipenv/blob/30067b458bd7a429f242736b7fde40c9bd4d4f14/CHANGELOG.rst#2022813-2022-08-13
# pipenv 2023.7.9 marks deprecation of pipenv lock --keep-outdated
# https://github.com/pypa/pipenv/blob/30067b458bd7a429f242736b7fde40c9bd4d4f14/CHANGELOG.rst#202379-2023-07-09
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down Expand Up @@ -66,7 +61,7 @@ jobs:
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry
run: python -m pip install pipenv poetry

- name: Install serverless
run: npm install -g serverless@${{ matrix.sls-version }}
Expand All @@ -92,57 +87,3 @@ jobs:
fi
- name: Unit tests
run: npm test

windowsNode14:
name: '[Windows] Node.js v14: Unit tests'
runs-on: windows-latest
strategy:
matrix:
sls-version: [2, 3]
pipenv-version: ['2022.8.5', '2022.8.13', '2023.7.4', '2023.7.9']
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Retrieve dependencies from cache
id: cacheNpm
uses: actions/cache@v2
with:
path: |
~/.npm
node_modules
key: npm-v14-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
restore-keys: |
npm-v14-${{ runner.os }}-${{ github.ref }}-
npm-v14-${{ runner.os }}-refs/heads/master-

- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install Node.js and npm
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Check python version
run: |
python --version

- name: Install setuptools
run: python -m pip install --force setuptools wheel

- name: Install pipenv / poetry
run: python -m pip install pipenv==${{ matrix.pipenv-version }} poetry

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

- name: Install dependencies
if: steps.cacheNpm.outputs.cache-hit != 'true'
run: |
npm update --no-save
npm update --save-dev --no-save
- name: Unit tests
run: npm test
Loading