Skip to content

Add Patrol DevTools extension #7

Add Patrol DevTools extension

Add Patrol DevTools extension #7

name: patrol_devtools_extension prepare
on:
workflow_dispatch:
pull_request:
paths:
- 'packages/patrol_devtools_extension/**'
jobs:
prepare:
name: Flutter ${{ matrix.flutter-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
flutter-version: ['3.17.0-5.0.pre.20']
flutter-channel: ['master']
defaults:
run:
working-directory: packages/patrol_devtools_extension
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
channel: ${{ matrix.flutter-channel }}
- name: flutter pub get
run: flutter pub get
- name: flutter test
if: success() || failure()
run: flutter test --coverage
- name: flutter analyze
if: success() || failure()
run: flutter analyze
- name: dart format
if: ${{ (success() || failure()) && (contains('3.10.x', matrix.flutter-version) || contains('3.13.x', matrix.flutter-version)) }}
run: dart format --set-exit-if-changed .
- name: flutter pub publish --dry-run
if: success() || failure()
run: flutter pub publish --dry-run