Skip to content

Commit e82d503

Browse files
authored
install gcloud and run tests that need gsutil (#175)
Part of #173
1 parent 7eae081 commit e82d503

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/baseline.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434
- uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c
3535
with:
3636
sdk: ${{ matrix.sdk }}
37+
- name: 'Set up Cloud SDK'
38+
uses: 'google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a'
3739

3840
- run: dart pub get
3941

4042
- run: dart analyze --fatal-infos
4143

4244
- run: dart format --output=none --set-exit-if-changed .
4345

44-
# TODO: Install gsutil and un-skip tests that require it
45-
- run: dart test -x requires_gsutil
46+
- run: dart test

baseline/lib/baseline.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ Future<void> baselineBuilder(
108108
}
109109

110110
Future<String> read(String url) {
111-
return run('gsutil.py', ['cp', url, '-']);
111+
return run('gsutil', ['cp', url, '-']);
112112
}
113113

114114
Future<String> write(String url, String stdin, bool dryRun) {
115-
return run('gsutil.py', ['cp', '-', url], stdin: stdin, dryRun: dryRun);
115+
return run('gsutil', ['cp', '-', url], stdin: stdin, dryRun: dryRun);
116116
}
117117

118118
Future<String> run(String command, List<String> arguments,

0 commit comments

Comments
 (0)