-
Notifications
You must be signed in to change notification settings - Fork 152
53 lines (42 loc) · 1.2 KB
/
patrol_devtools_extension-prepare.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.16.x']
flutter-channel: ['stable']
defaults:
run:
working-directory: packages/patrol_devtools_extension
steps:
- name: Clone repository
uses: actions/checkout@v4
- 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: Run analyzer
if: success() || failure()
run: |
flutter analyze
dart run custom_lint
- name: dart format
if: success() || failure()
run: dart format --set-exit-if-changed .
- name: Build extension
if: success() || failure()
run: ./publish_to_patrol_extension