File tree 1 file changed +0
-52
lines changed
1 file changed +0
-52
lines changed Original file line number Diff line number Diff line change 10
10
FORCE_COLOR : 1
11
11
12
12
jobs :
13
- linuxNode14 :
14
- name : ' [Linux] Node.js 14: Unit tests'
15
- runs-on : ubuntu-latest
16
- strategy :
17
- matrix :
18
- sls-version : [2, 3]
19
- steps :
20
- - name : Checkout repository
21
- uses : actions/checkout@v2
22
-
23
- - name : Retrieve dependencies from cache
24
- id : cacheNpm
25
- uses : actions/cache@v2
26
- with :
27
- path : |
28
- ~/.npm
29
- node_modules
30
- key : npm-v14-${{ runner.os }}-${{ github.ref }}-${{ hashFiles('package.json') }}
31
- restore-keys : npm-v14-${{ runner.os }}-${{ github.ref }}-
32
-
33
- - name : Set up Python 3.7
34
- uses : actions/setup-python@v2
35
- with :
36
- python-version : 3.7
37
-
38
- - name : Install Node.js and npm
39
- uses : actions/setup-node@v1
40
- with :
41
- node-version : 14.x
42
-
43
- - name : Check python version
44
- run : |
45
- python --version
46
-
47
- - name : Install setuptools
48
- run : python -m pip install --force setuptools wheel
49
-
50
- - name : Install pipenv / poetry
51
- run : python -m pip install pipenv poetry
52
-
53
- - name : Install serverless
54
- run : npm install -g serverless@${{ matrix.sls-version }}
55
-
56
- - name : Install dependencies
57
- if : steps.cacheNpm.outputs.cache-hit != 'true'
58
- run : |
59
- npm update --no-save
60
- npm update --save-dev --no-save
61
- - name : Unit tests
62
- run : npm test
63
-
64
13
tagIfNewVersion :
65
14
name : Tag if new version
66
15
runs-on : ubuntu-latest
67
- needs : [linuxNode14]
68
16
steps :
69
17
- name : Checkout repository
70
18
uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments