Skip to content

Update dependency com.android.tools.build:gradle to v8 #68

Update dependency com.android.tools.build:gradle to v8

Update dependency com.android.tools.build:gradle to v8 #68

name: native_image_cropper_macos
on:
push:
paths:
- 'native_image_cropper_macos/**'
- '.github/workflows/native_image_cropper_macos.yaml'
jobs:
build:
defaults:
run:
working-directory: native_image_cropper_macos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: .dart_tool/
key: ${{ runner.os }}-dependencies-macos-${{ hashFiles('**/pubspec.lock') }}
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format --set-exit-if-changed .
- name: Analyze code
run: flutter analyze
- name: Run code metrics
run: dart run dart_code_metrics:metrics analyze . --set-exit-on-violation-level=warning --disable-sunset-warning
- name: Run tests
run: flutter test
pana:
defaults:
run:
working-directory: native_image_cropper_macos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: .dart_tool/
key: ${{ runner.os }}-dependencies-macos-${{ hashFiles('**/pubspec.lock') }}
- name: Install Dependencies
run: |
flutter pub get
flutter pub global activate pana
- name: Verify Pub Score
run: ../tool/verify_pub_score.sh