File tree Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Expand file tree Collapse file tree 4 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- push : {branches: main}
5- pull_request : {branches: main}
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
68
79jobs :
810 ci :
911 runs-on : ubuntu-latest
1012 steps :
1113 - uses : actions/checkout@v2
12- - uses : actions/setup-node@v1
13- with : {node-version: 13.x}
14- - uses : actions/cache@v1
14+ - uses : actions/setup-node@v2
15+ with :
16+ node-version : 12
17+ - uses : actions/cache@v2
1518 with :
1619 path : ~/.npm
1720 key : ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
Original file line number Diff line number Diff line change 11name : Integration
22
33on :
4- push : {branches: main}
5- pull_request : {branches: main}
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
68
79jobs :
810 test-return :
3941 runs-on : ubuntu-latest
4042 steps :
4143 - uses : actions/checkout@v2
42- - uses : actions/cache@v1
44+ - uses : actions/cache@v2
4345 with :
4446 path : ~/.npm
4547 key : ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
Original file line number Diff line number Diff line change 11name : Licensed
22
33on :
4- push : {branches: main}
5- pull_request : {branches: main}
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
68 repository_dispatch :
79 workflow_dispatch :
810
1214 name : Check licenses
1315 steps :
1416 - uses : actions/checkout@v2
15- - uses : actions/cache@v1
17+ - uses : actions/cache@v2
1618 with :
1719 path : ~/.npm
1820 key : ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Pull Request Test
22
33on :
44 pull_request :
5- branches : main
5+ branches : [ main]
66 types : [opened, synchronize]
77
88jobs :
You can’t perform that action at this time.
0 commit comments