This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 2 files changed +52
-2
lines changed
2 files changed +52
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build_and_drive_windows :
7
+ runs-on : windows-2019
8
+ strategy :
9
+ matrix :
10
+ channel : ['master', 'stable']
11
+ # Disable fail-fast to get results from both channels even if one fails.
12
+ fail-fast : false
13
+
14
+ steps :
15
+ - uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
16
+ with :
17
+ path : plugins
18
+ - uses : actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
19
+ with :
20
+ path : flutter
21
+ repository : flutter/flutter
22
+ ref : master
23
+ # Shallow clones don't work; see https://github.com/flutter/flutter/issues/18532
24
+ fetch-depth : 0
25
+ - name : Set up Flutter
26
+ run : |
27
+ # Add tags, which are also necessary for version checks to work.
28
+ git fetch origin +refs/tags/*:refs/tags/*
29
+ # Set channel
30
+ bin\flutter channel ${{matrix.channel}}
31
+ bin\flutter upgrade
32
+ # Enable desktop
33
+ bin\flutter config --enable-windows-desktop
34
+ # Add fluter to path.
35
+ echo "$env:GITHUB_WORKSPACE\flutter\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
36
+ working-directory : ${{ github.workspace }}/flutter
37
+ - name : Doctor
38
+ # Run doctor, for ease of debugging any issues.
39
+ run : flutter doctor -v
40
+ - name : Set up tools
41
+ run : dart pub get
42
+ working-directory : ${{ github.workspace }}/plugins/script/tool
43
+ - name : Build
44
+ run : |
45
+ dart run ./script/tool/lib/src/main.dart build-examples --windows --run-on-changed-packages
46
+ working-directory : ${{ github.workspace }}/plugins
47
+ - name : Drive
48
+ run : |
49
+ dart run ./script/tool/lib/src/main.dart drive-examples --windows --run-on-changed-packages
50
+ working-directory : ${{ github.workspace }}/plugins
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ class FirebaseTestLabCommand extends PluginCommand {
27
27
help: 'The Firebase project name.' ,
28
28
);
29
29
argParser.addOption ('service-key' ,
30
- defaultsTo:
31
- p. join ( io.Platform .environment['HOME' ], 'gcloud-service-key.json' ));
30
+ defaultsTo: p. join (
31
+ io.Platform .environment['HOME' ] ?? '/' , 'gcloud-service-key.json' ));
32
32
argParser.addOption ('test-run-id' ,
33
33
defaultsTo: Uuid ().v4 (),
34
34
help:
You can’t perform that action at this time.
0 commit comments