Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit d160ed5

Browse files
Temporarily run Windows tests via GitHub Actions (#3875)
Until the infrastructure limitations that led to flutter/flutter#82032 are fixed, run basic Windows tests via GitHub Actions (which do have VS available) so that we aren't missing all Windows coverage.
1 parent 0e0c75b commit d160ed5

File tree

2 files changed

+52
-2
lines changed

2 files changed

+52
-2
lines changed

.github/workflows/windows_ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

script/tool/lib/src/firebase_test_lab_command.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class FirebaseTestLabCommand extends PluginCommand {
2727
help: 'The Firebase project name.',
2828
);
2929
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'));
3232
argParser.addOption('test-run-id',
3333
defaultsTo: Uuid().v4(),
3434
help:

0 commit comments

Comments
 (0)