From bcfe9bf37446f0f170c21c37a5d6907c0c7f3d14 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Tue, 21 Nov 2023 13:05:14 -0600 Subject: [PATCH] ci: use pana workflow (#115) --- .github/workflows/main.yaml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 02126ab..5c5263f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -20,20 +20,4 @@ jobs: flutter_version: 3.13.9 pana: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2.3.4 - - 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