Skip to content

Commit e29abf0

Browse files
chore: add pana check to melos and ci (algolia#78)
1 parent bec9e3e commit e29abf0

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/dart.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,28 @@ jobs:
7676
- name: "Bootstrap Workspace"
7777
run: melos bootstrap
7878
- name: "Flutter Test"
79-
run: melos run test:all
79+
run: melos run test:all
80+
81+
pana:
82+
runs-on: ubuntu-latest
83+
if: github.event.pull_request.draft == false
84+
timeout-minutes: 15
85+
steps:
86+
- name: "Git Checkout"
87+
uses: actions/checkout@v3
88+
with:
89+
fetch-depth: 0
90+
- name: "Install Flutter"
91+
uses: subosito/flutter-action@v2
92+
with:
93+
cache: true
94+
flutter-version: ${{ env.flutter_version }}
95+
- name: "Install Tools"
96+
run: |
97+
dart pub global activate pana
98+
flutter pub global activate melos
99+
- name: "Bootstrap Workspace"
100+
run: melos bootstrap --verbose
101+
- name: "Pana check"
102+
run: |
103+
melos run pana

melos.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ scripts:
1212
format:
1313
exec: dart format .
1414

15+
pana:
16+
exec: pana --no-warning --exit-code-threshold 0
17+
description: |
18+
Run pub points check for all packages
19+
1520
lint:pub:
1621
run: |
1722
melos exec -c 5 --no-private "dart pub publish --dry-run"

0 commit comments

Comments
 (0)