Skip to content

Commit

Permalink
Turns out melos expects itself on the command line :/
Browse files Browse the repository at this point in the history
  • Loading branch information
bramp committed Jan 29, 2024
1 parent c5d63e4 commit 8f9d129
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ jobs:
- name: Install dependencies
run: dart pub get

- name: Install melos
run: dart pub global activate melos

- name: Bootstrap melos
run: dart run melos bootstrap
run: melos bootstrap

# Uncomment this step to verify the use of 'dart format' on each commit.
# - name: Verify formatting
Expand All @@ -40,4 +43,4 @@ jobs:
run: dart analyze

- name: Run tests
run: dart run melos test
run: melos test
10 changes: 5 additions & 5 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ packages:
scripts:
test:
run: |
dart run melos run test:dart --no-select && \
dart run melos run test:flutter --no-select
melos run test:dart --no-select && \
melos run test:flutter --no-select
test:dart:
description: Run `dart test` in all dart packages.
Expand Down Expand Up @@ -38,9 +38,9 @@ scripts:

upgrade:
run: |
dart run melos exec -- \
melos exec -- \
"dart pub outdated && dart pub upgrade --major-versions --tighten"
dart run melos clean
dart run melos bootstrap
melos clean
melos bootstrap
description: |
Upgrade all packages to the latest version.

0 comments on commit 8f9d129

Please sign in to comment.