1010 FORCE_COLOR : 1
1111
1212jobs :
13- linuxNode16 :
14- name : ' [Linux] Node.js v16 : Lint, Eventual Commitlint, Eventual Changelog, Formatting & Unit tests'
13+ linuxNode14 :
14+ name : ' [Linux] Node.js v14 : Lint, Eventual Commitlint, Eventual Changelog, Formatting & Unit tests'
1515 runs-on : ubuntu-latest
1616 strategy :
1717 matrix :
@@ -38,10 +38,10 @@ jobs:
3838 path : |
3939 ~/.npm
4040 node_modules
41- key : npm-v16 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
41+ key : npm-v14 -${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
4242 restore-keys : |
43- npm-v16 -${{ runner.os }}-${{ github.ref }}-
44- npm-v16 -${{ runner.os }}-refs/heads/master-
43+ npm-v14 -${{ runner.os }}-${{ github.ref }}-
44+ npm-v14 -${{ runner.os }}-refs/heads/master-
4545
4646 - name : Set up Python ${{ matrix.python-version }}
4747 uses : actions/setup-python@v1
5151 - name : Install Node.js and npm
5252 uses : actions/setup-node@v1
5353 with :
54- node-version : 16 .x
54+ node-version : 14 .x
5555
5656 - name : Check python version
5757 run : |
8888 - name : Unit tests
8989 run : npm test
9090
91- windowsNode16 :
92- name : ' [Windows] Node.js v16 : Unit tests'
91+ windowsNode14 :
92+ name : ' [Windows] Node.js v14 : Unit tests'
9393 runs-on : windows-latest
94- strategy :
95- matrix :
96- python-version : [2.7, 3.6]
97- steps :
98- - name : Checkout repository
99- uses : actions/checkout@v2
100-
101- - name : Retrieve dependencies from cache
102- id : cacheNpm
103- uses : actions/cache@v2
104- with :
105- path : |
106- ~/.npm
107- node_modules
108- key : npm-v16-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
109- restore-keys : |
110- npm-v16-${{ runner.os }}-${{ github.ref }}-
111- npm-v16-${{ runner.os }}-refs/heads/master-
112-
113- - name : Set up Python ${{ matrix.python-version }}
114- uses : actions/setup-python@v1
115- with :
116- python-version : ${{ matrix.python-version }}
117-
118- - name : Install Node.js and npm
119- uses : actions/setup-node@v1
120- with :
121- node-version : 16.x
122-
123- - name : Check python version
124- run : |
125- python --version
126-
127- - name : Install setuptools
128- run : python -m pip install --force setuptools wheel
129-
130- - name : Install pipenv / poetry
131- run : python -m pip install pipenv poetry
132-
133- - name : Install serverless
134- run : npm install -g serverless@2
135-
136- - name : Install dependencies
137- if : steps.cacheNpm.outputs.cache-hit != 'true'
138- run : |
139- npm update --no-save
140- npm update --save-dev --no-save
141- - name : Unit tests
142- run : npm test
143-
144- linuxNode14 :
145- name : ' [Linux] Node.js 14: Unit tests'
146- runs-on : ubuntu-latest
14794 strategy :
14895 matrix :
14996 python-version : [2.7, 3.6]
0 commit comments