diff --git a/.github/workflows/dart_frog_lint.yaml b/.github/workflows/dart_frog_lint.yaml index 6411fc906..93fb63c0a 100644 --- a/.github/workflows/dart_frog_lint.yaml +++ b/.github/workflows/dart_frog_lint.yaml @@ -20,12 +20,25 @@ on: jobs: build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + with: + working_directory: packages/dart_frog + + custom_lint: runs-on: ubuntu-latest steps: - - uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 + - uses: actions/checkout@v3.1.0 with: - working_directory: packages/dart_frog - - run: dart run custom_lint + fetch-depth: 2 + - uses: subosito/flutter-action@v2.7.1 + - name: Add pub cache bin to PATH + run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH + - name: Add pub cache to PATH + run: echo "PUB_CACHE="$HOME/.pub-cache"" >> $GITHUB_ENV + - name: Install dependencies + run: flutter pub get + - name: Run custom_lint + run: dart run custom_lint pana: uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1