Skip to content

Commit 5da147c

Browse files
authored
ci: update ci-related scripts
Closes #115
1 parent 5a2bdfa commit 5da147c

File tree

4 files changed

+175
-83
lines changed

4 files changed

+175
-83
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Automates the process of testing, analyzing, checking the code format,
22
# building, and deploying using Github Actions.
33
name: Flutter CI
4+
45
# Controls when the action will run.
56
on:
67
# Triggers the workflow on push or pull request events but only for the main branch
8+
# Runs this action when you push on master
79
push:
8-
branches: [master]
10+
branches:
11+
- master
12+
# Runs this when a PR against master is created
913
pull_request:
10-
branches: [master]
14+
branches:
15+
- master
16+
1117
# Allows you to run this workflow manually from the Actions tab
1218
workflow_dispatch:
1319

@@ -17,31 +23,40 @@ jobs:
1723
build:
1824
# The type of runner that the job will run on
1925
runs-on: ubuntu-latest
26+
2027
# Steps represent a sequence of tasks that will be executed as part of the job
2128
steps:
2229
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24-
# Java environment.
25-
- uses: actions/setup-java@v3
26-
with:
27-
distribution: 'zulu'
28-
java-version: '12.x'
30+
- name: Clone repository
31+
uses: actions/checkout@v4
32+
2933
# Setup the flutter environment.
30-
- uses: subosito/flutter-action@v2
34+
- name: Setup Flutter
35+
uses: subosito/flutter-action@v2
3136
with:
32-
flutter-version: "3.3.2"
3337
channel: 'stable'
3438
cache: true
39+
40+
- name: Verify Flutter version
41+
run: flutter --version
42+
3543
# Get flutter dependencies.
36-
- run: flutter pub get
44+
- name: Getting dependencies
45+
run: flutter pub get
46+
3747
# Check for any formatting issues in the code.
38-
- run: flutter format --set-exit-if-changed lib/ test/ example/
39-
# Statically analyze the Dart code for any errors.
40-
- run: flutter analyze --no-current-package lib/ test/ example/
41-
# Run widget tests for our flutter project.
42-
- run: flutter test --no-pub --coverage
48+
- name: Verify formatting
49+
run: dart format --output=none --set-exit-if-changed lib/ test/ example/
50+
51+
- name: Analyze project source
52+
run: dart analyze --fatal-infos --fatal-warnings lib/ test/ example/
53+
54+
- name: Run tests
55+
run: flutter test --no-pub --coverage
56+
4357
- name: Upload coverage to Codecov
44-
uses: codecov/codecov-action@v1
58+
uses: codecov/codecov-action@v4
4559
with:
60+
fail_ci_if_error: true
4661
token: ${{ secrets.CODECOV_TOKEN }}
4762
file: ./coverage/lcov.info

.rultor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
docker:
2-
image: cirrusci/flutter:stable
2+
image: ghcr.io/cirruslabs/flutter:stable
33
as_root: true
44
architect:
55
- rafamizes
66
assets:
77
credentials.json: rafamizes/secret#assets/publishing/flutter/credentials.json
88
merge:
9-
squash: true
9+
rebase: true
1010
script: |
1111
flutter clean
1212
flutter pub get
@@ -23,6 +23,8 @@ release:
2323
sed -i "/\[[Uu]nreleased\]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
2424
mkdir -p ~/.pub-cache
2525
mv ../credentials.json ~/.pub-cache/credentials.json
26+
flutter clean
27+
flutter pub get
2628
flutter pub publish -f
2729
git commit -am "version $tag"
2830
git checkout master

example/pubspec.lock

Lines changed: 87 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,49 +5,56 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
url: "https://pub.dartlang.org"
8+
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "2.9.0"
11+
version: "2.11.0"
1112
boolean_selector:
1213
dependency: transitive
1314
description:
1415
name: boolean_selector
15-
url: "https://pub.dartlang.org"
16+
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "2.1.0"
19+
version: "2.1.1"
1820
characters:
1921
dependency: transitive
2022
description:
2123
name: characters
22-
url: "https://pub.dartlang.org"
24+
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
25+
url: "https://pub.dev"
2326
source: hosted
24-
version: "1.2.1"
27+
version: "1.3.0"
2528
clock:
2629
dependency: transitive
2730
description:
2831
name: clock
29-
url: "https://pub.dartlang.org"
32+
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
33+
url: "https://pub.dev"
3034
source: hosted
3135
version: "1.1.1"
3236
collection:
3337
dependency: transitive
3438
description:
3539
name: collection
36-
url: "https://pub.dartlang.org"
40+
sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
41+
url: "https://pub.dev"
3742
source: hosted
38-
version: "1.16.0"
43+
version: "1.18.0"
3944
eo_color:
4045
dependency: "direct main"
4146
description:
4247
name: eo_color
43-
url: "https://pub.dartlang.org"
48+
sha256: ac7210d3d77b896203c6bd895aaa05af4830b9429ffe466b1da79a3e007371a9
49+
url: "https://pub.dev"
4450
source: hosted
4551
version: "2.2.1"
4652
fake_async:
4753
dependency: transitive
4854
description:
4955
name: fake_async
50-
url: "https://pub.dartlang.org"
56+
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
57+
url: "https://pub.dev"
5158
source: hosted
5259
version: "1.3.1"
5360
flutter:
@@ -61,47 +68,76 @@ packages:
6168
path: ".."
6269
relative: true
6370
source: path
64-
version: "0.5.0"
71+
version: "0.5.1"
6572
flutter_test:
6673
dependency: "direct dev"
6774
description: flutter
6875
source: sdk
6976
version: "0.0.0"
77+
leak_tracker:
78+
dependency: transitive
79+
description:
80+
name: leak_tracker
81+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
82+
url: "https://pub.dev"
83+
source: hosted
84+
version: "10.0.5"
85+
leak_tracker_flutter_testing:
86+
dependency: transitive
87+
description:
88+
name: leak_tracker_flutter_testing
89+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
90+
url: "https://pub.dev"
91+
source: hosted
92+
version: "3.0.5"
93+
leak_tracker_testing:
94+
dependency: transitive
95+
description:
96+
name: leak_tracker_testing
97+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
98+
url: "https://pub.dev"
99+
source: hosted
100+
version: "3.0.1"
70101
lint:
71102
dependency: "direct dev"
72103
description:
73104
name: lint
74-
url: "https://pub.dartlang.org"
105+
sha256: "3e9343b1cededcfb1e8b40d0dbd3592b7a1c6c0121545663a991433390c2bc97"
106+
url: "https://pub.dev"
75107
source: hosted
76108
version: "2.0.1"
77109
matcher:
78110
dependency: transitive
79111
description:
80112
name: matcher
81-
url: "https://pub.dartlang.org"
113+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
114+
url: "https://pub.dev"
82115
source: hosted
83-
version: "0.12.12"
116+
version: "0.12.16+1"
84117
material_color_utilities:
85118
dependency: transitive
86119
description:
87120
name: material_color_utilities
88-
url: "https://pub.dartlang.org"
121+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
122+
url: "https://pub.dev"
89123
source: hosted
90-
version: "0.1.5"
124+
version: "0.11.1"
91125
meta:
92126
dependency: transitive
93127
description:
94128
name: meta
95-
url: "https://pub.dartlang.org"
129+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
130+
url: "https://pub.dev"
96131
source: hosted
97-
version: "1.8.0"
132+
version: "1.15.0"
98133
path:
99134
dependency: transitive
100135
description:
101136
name: path
102-
url: "https://pub.dartlang.org"
137+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
138+
url: "https://pub.dev"
103139
source: hosted
104-
version: "1.8.2"
140+
version: "1.9.0"
105141
sky_engine:
106142
dependency: transitive
107143
description: flutter
@@ -111,51 +147,66 @@ packages:
111147
dependency: transitive
112148
description:
113149
name: source_span
114-
url: "https://pub.dartlang.org"
150+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
151+
url: "https://pub.dev"
115152
source: hosted
116-
version: "1.9.0"
153+
version: "1.10.0"
117154
stack_trace:
118155
dependency: transitive
119156
description:
120157
name: stack_trace
121-
url: "https://pub.dartlang.org"
158+
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
159+
url: "https://pub.dev"
122160
source: hosted
123-
version: "1.10.0"
161+
version: "1.11.1"
124162
stream_channel:
125163
dependency: transitive
126164
description:
127165
name: stream_channel
128-
url: "https://pub.dartlang.org"
166+
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
167+
url: "https://pub.dev"
129168
source: hosted
130-
version: "2.1.0"
169+
version: "2.1.2"
131170
string_scanner:
132171
dependency: transitive
133172
description:
134173
name: string_scanner
135-
url: "https://pub.dartlang.org"
174+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
175+
url: "https://pub.dev"
136176
source: hosted
137-
version: "1.1.1"
177+
version: "1.2.0"
138178
term_glyph:
139179
dependency: transitive
140180
description:
141181
name: term_glyph
142-
url: "https://pub.dartlang.org"
182+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
183+
url: "https://pub.dev"
143184
source: hosted
144185
version: "1.2.1"
145186
test_api:
146187
dependency: transitive
147188
description:
148189
name: test_api
149-
url: "https://pub.dartlang.org"
190+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
191+
url: "https://pub.dev"
150192
source: hosted
151-
version: "0.4.12"
193+
version: "0.7.2"
152194
vector_math:
153195
dependency: transitive
154196
description:
155197
name: vector_math
156-
url: "https://pub.dartlang.org"
198+
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
199+
url: "https://pub.dev"
157200
source: hosted
158-
version: "2.1.2"
201+
version: "2.1.4"
202+
vm_service:
203+
dependency: transitive
204+
description:
205+
name: vm_service
206+
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
207+
url: "https://pub.dev"
208+
source: hosted
209+
version: "14.2.4"
159210
sdks:
160-
dart: ">=2.18.0 <3.0.0"
161-
flutter: ">=1.17.0"
211+
dart: ">=3.3.0 <4.0.0"
212+
flutter: ">=3.18.0-18.0.pre.54"

0 commit comments

Comments
 (0)