-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (45 loc) · 1.34 KB
/
bloc_presentation_test-test.yml
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: bloc_presentation_test test
on:
push:
branches: [master]
tags-ignore: ['bloc_presentation_test-v*']
paths:
- 'packages/bloc_presentation_test/**'
- .github/workflows/bloc_presentation_test-test.yml
pull_request:
branches: [master]
paths:
- 'packages/bloc_presentation_test/**'
- .github/workflows/bloc_presentation_test-test.yml
jobs:
test:
name: Flutter ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ['3.10.x', '3.13.x']
defaults:
run:
working-directory: packages/bloc_presentation_test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
cache: true
- name: Download pub dependencies
run: flutter pub get
- name: Check formatting
run: dart format --set-exit-if-changed --output none .
- name: Run analyzer
run: flutter analyze --fatal-warnings --fatal-infos
- name: Run tests
run: flutter test
- name: Dry run pub publish
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1
with:
dry-run: true
path: packages/bloc_presentation_test