Skip to content

Remove on pull_request workflow #43

Remove on pull_request workflow

Remove on pull_request workflow #43

name: native_image_cropper_ios
on:
push:
paths:
- 'native_image_cropper_ios/**'
- '.github/workflows/native_image_cropper_ios.yaml'
jobs:
build:
defaults:
run:
working-directory: native_image_cropper_ios
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/[email protected]
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: |
.dart_tool/
key: ${{ runner.os }}-dependencies-${{ 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_ios
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/[email protected]
- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: |
.dart_tool/
key: ${{ runner.os }}-dependencies-${{ 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