-
Notifications
You must be signed in to change notification settings - Fork 146
57 lines (43 loc) · 1.34 KB
/
patrol_cli-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
54
55
56
57
name: patrol_cli prepare
on:
workflow_dispatch:
pull_request:
paths:
- 'packages/patrol_cli/**'
jobs:
main:
name: Flutter ${{ matrix.flutter-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
flutter-version: ['3.3.x', '3.7.x', '3.10.x', '3.13.x']
defaults:
run:
working-directory: packages/patrol_cli
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}
- name: Run flutter tool (to dismiss the first run experience)
run: flutter
- name: dart pub get
run: dart pub get
- name: Build executable
run: dart pub global activate --source path .
- name: Run executable (smoke test)
run: patrol
- name: dart test
run: |
dart test --coverage coverage
dart run coverage:format_coverage --lcov --in coverage --out coverage/lcov.info --report-on lib
- name: dart analyze
run: dart analyze
- name: dart format
run: dart format --set-exit-if-changed .
- name: dart pub publish --dry-run
run: dart pub publish --dry-run