Skip to content

Commit 6fe8765

Browse files
fix actions
1 parent d434ad3 commit 6fe8765

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: dart-lang/setup-dart@v1
2323

2424
- name: Install Melos
25-
run: flutter pub global activate melos
25+
run: dart pub global activate melos
2626

2727
- name: Install dependencies
2828
run: melos prepare

.github/workflows/test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: dart-lang/setup-dart@v1
1414

15+
- name: Install Melos
16+
run: dart pub global activate melos
1517
- name: Install dependencies
16-
run: dart pub get
18+
run: melos prepare
1719
- name: Check formatting
18-
run: dart format --output=none --set-exit-if-changed .
20+
run: melos format:check:packages
1921
- name: Lint
20-
run: dart analyze
22+
run: melos analyze:packages
2123
- name: Publish dry-run
22-
run: dart pub publish --dry-run
24+
run: melos publish --dry-run --yes
2325
- name: Check publish score
24-
run: |
25-
dart pub global activate pana
26-
dart pub global run pana --no-warning --exit-code-threshold 0
26+
run: melos analyze:packages:pana
2727

2828
test:
2929
runs-on: ubuntu-latest
@@ -52,7 +52,7 @@ jobs:
5252
sdk: ${{ matrix.dart_sdk }}
5353

5454
- name: Install Melos
55-
run: flutter pub global activate melos
55+
run: dart pub global activate melos
5656

5757
- name: Install dependencies
5858
run: melos prepare

melos.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ scripts:
2626
description: Analyze Dart code in packages.
2727
run: dart analyze packages --fatal-infos
2828

29+
analyze:packages:pana:
30+
description: Analyze Dart packages with Pana
31+
exec: dart pub global run pana --no-warning --exit-code-threshold 0
32+
packageFilters:
33+
noPrivate: true
34+
2935
test:
3036
description: Run tests in a specific package.
3137
run: dart test -p chrome,vm

0 commit comments

Comments
 (0)