File tree Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Expand file tree Collapse file tree 3 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 4
4
workflow_run :
5
5
workflows :
6
6
- " Code Quality"
7
- - " Flutter Integration Test "
7
+ - " Run Tests "
8
8
types :
9
9
- completed
10
10
@@ -17,17 +17,13 @@ jobs:
17
17
uses : actions/checkout@v4
18
18
with :
19
19
fetch-depth : 0
20
- - name : Set up Flutter
20
+ - name : Setup Flutter
21
21
uses : subosito/flutter-action@v2
22
22
with :
23
23
channel : stable
24
24
flutter-version-file : pubspec.yaml
25
25
- name : Install dependencies
26
26
run : flutter pub get
27
- - name : Analyze code
28
- run : flutter analyze
29
- - name : Format code
30
- run : dart format --output=none --set-exit-if-changed .
31
27
- name : Update version
32
28
run : |
33
29
LATEST_TAG=$(git describe --tags --abbrev=0)
38
34
git add pubspec.yaml
39
35
git commit -m "chore: update version to $VERSION"
40
36
git push
41
- - name : Run tests
42
- run : flutter test
43
37
- name : Publish plugin
44
38
run : flutter pub publish --force
45
39
env :
Original file line number Diff line number Diff line change 4
4
push :
5
5
6
6
jobs :
7
- integration :
7
+ analyze :
8
+ name : Static Analysis
8
9
runs-on : ubuntu-latest
9
10
steps :
10
11
- uses : actions/checkout@v4
11
- - name : Set up Flutter
12
+ - name : Setup Flutter
12
13
uses : subosito/flutter-action@v2
13
14
with :
14
15
channel : stable
17
18
run : flutter pub get
18
19
- name : Analyze code
19
20
run : flutter analyze
21
+ format :
22
+ name : Code Formatting
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - name : Setup dart
27
+ uses : dart-lang/setup-dart@v1
20
28
- name : Format code
21
29
run : dart format --output=none --set-exit-if-changed .
Original file line number Diff line number Diff line change 1
- name : Flutter Integration Test
1
+ name : Tests
2
2
3
3
on :
4
4
push :
5
5
6
6
jobs :
7
7
integration :
8
+ name : Integration Test
8
9
runs-on : ubuntu-latest
9
10
steps :
10
11
- uses : actions/checkout@v4
11
- - name : Set up Flutter
12
+ - name : Setup Flutter
12
13
uses : subosito/flutter-action@v2
13
14
with :
14
15
channel : stable
15
16
flutter-version-file : pubspec.yaml
16
- - name : Flutter integration test
17
+ - name : Flutter Integration Test
17
18
working-directory : ./example
18
19
run : flutter test integration_test
You can’t perform that action at this time.
0 commit comments