File tree 1 file changed +24
-8
lines changed
1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
pull_request : {}
8
+
8
9
jobs :
9
10
unit :
10
11
runs-on : ubuntu-latest
11
12
steps :
12
13
- uses : actions/checkout@v2
13
- - name : Unit Tests
14
- run : |
15
- npm ci
16
- npm run test
14
+
15
+ - name : Read .nvmrc
16
+ run : echo "##[set-output name=nvmrc;]$(cat .nvmrc)"
17
+ id : nvm
18
+ - name : Setup Node
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ steps.nvm.outputs.nvmrc }}
22
+ - run : npm ci
23
+
24
+ - run : npm run test
25
+
17
26
lint :
18
27
runs-on : ubuntu-latest
19
28
steps :
20
29
- uses : actions/checkout@v2
21
- - name : Lint
22
- run : |
23
- npm ci
24
- npm run lint
30
+
31
+ - name : Read .nvmrc
32
+ run : echo "##[set-output name=nvmrc;]$(cat .nvmrc)"
33
+ id : nvm
34
+ - name : Setup Node
35
+ uses : actions/setup-node@v1
36
+ with :
37
+ node-version : ${{ steps.nvm.outputs.nvmrc }}
38
+ - run : npm ci
39
+
40
+ - run : npm run lint
You can’t perform that action at this time.
0 commit comments