Skip to content

Commit 4a9289d

Browse files
committed
Update ci.yml
1 parent e0c54d2 commit 4a9289d

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,22 @@ jobs:
163163
cache: true
164164
- name: Install pana
165165
uses: flutterings/dart-package-analyzer@v1
166-
- name: Check package score
167-
run: pana --exit-code-threshold 0 --no-dartdoc .
166+
id: analysis
167+
with:
168+
flutter_version: 3.24.5
169+
flutter_channel: stable
170+
relativePath: .
171+
- name: Check scores
172+
env:
173+
TOTAL: ${{ steps.analysis.outputs.total }}
174+
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
175+
run: |
176+
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
177+
if (( $PERCENTAGE < 100 ))
178+
then
179+
echo Score too low!
180+
exit 1
181+
fi
168182
build-android:
169183
name: "[Android] Build APK"
170184
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)