-
Notifications
You must be signed in to change notification settings - Fork 89
95 lines (88 loc) · 2.35 KB
/
reactive_forms.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: reactive_forms
on:
push:
branches:
- master
- develop
- "feature/**"
tags:
- '*'
pull_request:
branches:
- master
- develop
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: "stable"
- run: flutter pub get
- run: flutter test --no-pub --coverage
- run: bash <(curl -s https://codecov.io/bash) -t d5f3f780-d3d4-4c7c-997b-31f1f7620eba
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: "stable"
- run: flutter pub get
- name: Analyze lib
run: flutter analyze lib
- name: Analyze test
run: flutter analyze test
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: "stable"
- run: flutter pub get
- name: Format lib
run: dart format lib --set-exit-if-changed
- name: Format test
run: dart format test --set-exit-if-changed
publish-warnings:
name: Publish warnings
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: "stable"
- run: flutter pub get
- name: Check publish warnings
run: dart pub publish --dry-run
deployment:
if: ${{ github.ref_type == 'tag' }}
needs: [test, analyze, format, publish-warnings]
name: Deploy package
runs-on: ubuntu-latest
steps:
- name: Configure enviroment
uses: actions/checkout@v3
- name: Download flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.16.0"
channel: "stable"
- name: Setup pub credentials
shell: bash
env:
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
run: |
sh ./tool/pub_login.sh
- name: Publish package
run: dart pub publish -v -f