forked from leancodepl/patrol
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.21 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
name: patrol_cli prepare
on:
push:
branches: [master]
tags-ignore: ['*']
paths:
- 'packages/patrol_cli/**'
pull_request:
branches: [master]
paths:
- 'packages/patrol_cli/**'
jobs:
main:
name: Flutter ${{ matrix.channel }}${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- version: '3.3.0'
- channel: stable
- channel: beta
defaults:
run:
working-directory: packages/patrol_cli
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.channel }}
flutter-version: ${{ matrix.version }}
- name: dart pub get
run: dart pub get
- 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