Skip to content

Commit f3bdad1

Browse files
committed
update the implementation of 'onBot'
1 parent 9186936 commit f3bdad1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pkgs/appengine/test/integration/common_e2e.dart

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ const String DEFAULT_KEY_LOCATION =
2424
'gs://dart-archive-internal/keys/dart-gcloud-e2e.json';
2525

2626
bool onBot() {
27+
// Check for GitHub Actions.
28+
if (Platform.environment['CI'] == 'true') {
29+
return true;
30+
}
31+
32+
// Redundent GitHub Actions check.
33+
if (Platform.environment.containsKey('GITHUB_ACTION')) {
34+
return true;
35+
}
36+
37+
// Chromium LUCI check.
2738
final name = Platform.isWindows ? 'USERNAME' : 'USER';
2839
return Platform.environment[name] == 'chrome-bot';
2940
}

0 commit comments

Comments
 (0)