We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c54d2 commit 4a9289dCopy full SHA for 4a9289d
.github/workflows/ci.yml
@@ -163,8 +163,22 @@ jobs:
163
cache: true
164
- name: Install pana
165
uses: flutterings/dart-package-analyzer@v1
166
- - name: Check package score
167
- run: pana --exit-code-threshold 0 --no-dartdoc .
+ id: analysis
+ 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
182
build-android:
183
name: "[Android] Build APK"
184
runs-on: ubuntu-latest
0 commit comments