File tree 2 files changed +8
-0
lines changed
tests/integration/cli/tests
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ fn login_works() -> anyhow::Result<()> {
11
11
return Ok ( ( ) ) ;
12
12
}
13
13
let wapm_dev_token = std:: env:: var ( "WAPM_DEV_TOKEN" ) . expect ( "WAPM_DEV_TOKEN env var not set" ) ;
14
+ // Special case: GitHub secrets aren't visible to outside collaborators
15
+ if wapm_dev_token. is_empty ( ) {
16
+ return Ok ( ( ) ) ;
17
+ }
14
18
let output = Command :: new ( get_wasmer_path ( ) )
15
19
. arg ( "login" )
16
20
. arg ( "--registry" )
Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ fn run_whoami_works() -> anyhow::Result<()> {
112
112
}
113
113
114
114
let ciuser_token = std:: env:: var ( "WAPM_DEV_TOKEN" ) . expect ( "no CIUSER / WAPM_DEV_TOKEN token" ) ;
115
+ // Special case: GitHub secrets aren't visible to outside collaborators
116
+ if ciuser_token. is_empty ( ) {
117
+ return Ok ( ( ) ) ;
118
+ }
115
119
116
120
let output = Command :: new ( get_wasmer_path ( ) )
117
121
. arg ( "login" )
You can’t perform that action at this time.
0 commit comments