Skip to content

Commit

Permalink
test-* workflows: set up Melos to fix CI on branches
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Nov 14, 2023
1 parent 43148c4 commit a46e551
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/patrol-prepare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ jobs:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.flutter-channel }}

- name: Set up Melos
run: dart pub global activate melos

- name: Activate Melos workspace
run: cd ../.. && melos bootstrap
- name: Set up Melos and activate workspace
working-directory: .
run: |
dart pub global activate melos
melos bootstrap
- name: flutter pub get
run: flutter pub get
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-android-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
- name: Preload Flutter artifacts
run: flutter precache --android

- name: Set up Melos and activate workspace
working-directory: .
run: |
dart pub global activate melos
melos bootstrap
- name: Set up Patrol CLI
working-directory: packages/patrol_cli
run: dart pub global activate --source path . && patrol
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-android-emulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ jobs:
- name: Preload Flutter artifacts
run: flutter precache --android

- name: Set up Melos and activate workspace
working-directory: .
run: |
dart pub global activate melos
melos bootstrap
- name: Set up Patrol CLI
working-directory: packages/patrol_cli
run: dart pub global activate --source path . && patrol
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-ios-device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ jobs:
- name: Preload Flutter artifacts
run: flutter precache --ios

- name: Set up Melos and activate workspace
working-directory: .
run: |
dart pub global activate melos
melos bootstrap
- name: Set up Patrol CLI
working-directory: packages/patrol_cli
run: dart pub global activate --source path . && patrol
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-ios-simulator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
- name: Preload Flutter artifacts
run: flutter precache --ios

- name: Set up Melos and activate workspace
working-directory: .
run: |
dart pub global activate melos
melos bootstrap
- name: Set up Patrol CLI
working-directory: packages/patrol_cli
run: dart pub global activate --source path . && patrol
Expand Down

0 comments on commit a46e551

Please sign in to comment.