File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
# building, and deploying using Github Actions.
3
3
name : Flutter CI
4
4
5
- # Controls when the action will run.
5
+ # Controls when the action will run.
6
6
on :
7
7
# Triggers the workflow on push or pull request events but only for the main branch
8
8
push :
@@ -32,19 +32,19 @@ jobs:
32
32
- uses : subosito/flutter-action@v1
33
33
with :
34
34
channel : ' stable'
35
-
35
+
36
36
# Get flutter dependencies.
37
37
- run : flutter pub get
38
-
38
+
39
39
# Check for any formatting issues in the code.
40
40
- run : flutter format --set-exit-if-changed lib/ test/
41
-
41
+
42
42
# Statically analyze the Dart code for any errors.
43
43
- run : flutter analyze --no-current-package lib/ test/
44
-
44
+
45
45
# Run widget tests for our flutter project.
46
46
- run : flutter test --no-pub --coverage
47
-
47
+
48
48
- name : Upload coverage to Codecov
49
49
uses : codecov/codecov-action@v1
50
50
with :
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ release:
23
23
# repository.
24
24
script : |-
25
25
sed -i "s/^\(version:\).*/\1 $tag/" pubspec.yaml
26
- sed -i "/\[Unreleased \]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
26
+ sed -i "/\[[Uu]nreleased \]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
27
27
mkdir -p ~/.pub-cache
28
28
mv ../credentials.json ~/.pub-cache/credentials.json
29
29
flutter pub publish -f
You can’t perform that action at this time.
0 commit comments