File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,14 @@ Install modules from a cpanfile.
76
76
Boolean variable used to disable unit tests during installation
77
77
Possible values : true | false [default: false]
78
78
79
+ # ## `verbose`
80
+
81
+ Boolean variable used to control the `-v` flag
82
+ Possible values : true | false [default: false]
83
+
84
+ Note : this was previously set to true by default,
85
+ this is now disabled to speedup installations.
86
+
79
87
# ## `args`
80
88
81
89
Extra arguments to pass to the cpanm command line.
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ inputs:
18
18
required : false
19
19
default : false
20
20
21
+ verbose :
22
+ description : " Add -v to cpanm"
23
+ required : false
24
+ default : false
25
+
21
26
args :
22
27
description : " Extra args used passed to install command"
23
28
required : false
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ async function run() {
97
97
const tests = core . getInput ( "tests" ) ;
98
98
const dash_g = core . getInput ( "global" ) ;
99
99
const args = core . getInput ( "args" ) ;
100
+ const verbose = core . getInput ( "verbose" ) ;
100
101
101
102
const w_tests = is_true ( tests ) ? null : "--notest" ;
102
103
var w_args = [ ] ;
@@ -106,7 +107,12 @@ async function run() {
106
107
}
107
108
108
109
/* base CMD_install command */
109
- var CMD_install = [ PERL , cpanm_location , "-v" ] ;
110
+ var CMD_install = [ PERL , cpanm_location ] ;
111
+
112
+ if ( is_true ( verbose ) ) {
113
+ CMD_install . push ( "-v" ) ;
114
+ }
115
+
110
116
if ( w_tests != null ) {
111
117
CMD_install . push ( w_tests ) ;
112
118
}
You can’t perform that action at this time.
0 commit comments