Skip to content

Commit

Permalink
ci: use very_good_workflows for pana (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Sep 8, 2022
1 parent 78177ee commit 7fe0db5
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/main.yaml
Expand Up @@ -22,20 +22,4 @@ jobs:
run: dart analyze .

pana:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- 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 7fe0db5

Please sign in to comment.