Skip to content

Commit 9ff9794

Browse files
authored
ci: Add missing dependency installation in CI (#833)
1 parent d337e35 commit 9ff9794

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
cache: true
4949
- name: Install dependencies
5050
run: |
51-
(cd packages/dart; flutter pub get)
52-
(cd packages/flutter; flutter pub get)
51+
(cd packages/dart && flutter pub get)
52+
(cd packages/flutter && flutter pub get)
5353
- name: Analyze code
5454
run: flutter analyze packages/flutter --no-fatal-infos
5555
check-code-analysis-dart:
@@ -79,6 +79,16 @@ jobs:
7979
uses: subosito/flutter-action@v2
8080
with:
8181
cache: true
82+
- name: Install dependencies on Ubuntu and MacOS
83+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
84+
run: |
85+
(cd packages/dart && flutter pub get)
86+
(cd packages/flutter && flutter pub get)
87+
- name: Install dependencies on Windows
88+
if: matrix.os == 'windows-latest'
89+
run: |
90+
cmd /c "cd packages\dart && flutter pub get"
91+
cmd /c "cd packages\flutter && flutter pub get"
8292
- name: Run tests
8393
run: (cd packages/flutter && flutter test --coverage)
8494
- name: Convert code coverage

0 commit comments

Comments
 (0)