Skip to content

Commit

Permalink
ci: use pana workflow (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Nov 21, 2023
1 parent 2b58010 commit bcfe9bf
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,4 @@ jobs:
flutter_version: 3.13.9

pana:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: subosito/flutter-action@v2

- name: Install Dependencies
run: |
flutter packages get
flutter pub global activate pana
- name: Verify Pub Score
run: |
PANA=$(pana . --no-warning); PANA_SCORE=$(echo $PANA | sed -n "s/.*Points: \([0-9]*\)\/\([0-9]*\)./\1\/\2/p")
echo "score: $PANA_SCORE"
IFS='/'; read -a SCORE_ARR <<< "$PANA_SCORE"; SCORE=SCORE_ARR[0]; TOTAL=SCORE_ARR[1]
if (( $SCORE < $TOTAL )); then echo "minimum score not met!"; exit 1; fi
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1

0 comments on commit bcfe9bf

Please sign in to comment.