Skip to content

Commit fd4586c

Browse files
authored
ci: fix github actions config file
Closes #150
1 parent 1d7da47 commit fd4586c

File tree

3 files changed

+71
-37
lines changed

3 files changed

+71
-37
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ name: Flutter CI
55
# Controls when the action will run.
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
8+
# Runs this action when you push on master
89
push:
9-
branches: [master]
10+
branches: [ "master" ]
11+
# Runs this when a PR against master is created
1012
pull_request:
13+
branches: [ "master" ]
1114

1215
# Allows you to run this workflow manually from the Actions tab
1316
workflow_dispatch:
@@ -22,28 +25,35 @@ jobs:
2225
# Steps represent a sequence of tasks that will be executed as part of the job
2326
steps:
2427
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
25-
- uses: actions/checkout@v2
26-
# Java environment.
27-
- uses: actions/setup-java@v3
28-
with:
29-
distribution: 'zulu'
30-
java-version: '12.x'
28+
- name: Clone repository
29+
uses: actions/checkout@v4
30+
3131
# Setup the flutter environment.
32-
- uses: subosito/flutter-action@v2
32+
- name: Setup Flutter
33+
uses: subosito/flutter-action@v2
3334
with:
34-
flutter-version: "3.3.2"
3535
channel: 'stable'
3636
cache: true
37+
38+
- name: Verify Flutter version
39+
run: flutter --version
40+
3741
# Get flutter dependencies.
38-
- run: flutter pub get
42+
- name: Getting dependencies
43+
run: flutter pub get
44+
3945
# Check for any formatting issues in the code.
40-
- run: flutter format --set-exit-if-changed lib/ test/ example/
41-
# Statically analyze the Dart code for any errors.
42-
- run: flutter analyze --no-current-package lib/ test/ example/
43-
# Run widget tests for our flutter project.
44-
- run: flutter test --no-pub --coverage
46+
- name: Verify formatting
47+
run: dart format --output=none --set-exit-if-changed lib/ test/ example/
48+
49+
- name: Analyze project source
50+
run: dart analyze --fatal-infos --fatal-warnings lib/ test/ example/
51+
52+
- name: Run tests
53+
run: flutter test --no-pub --coverage
54+
4555
- name: Upload coverage to Codecov
46-
uses: codecov/codecov-action@v1
56+
uses: codecov/codecov-action@v4
4757
with:
4858
token: ${{ secrets.CODECOV_TOKEN }}
4959
file: ./coverage/lcov.info

pubspec.lock

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,30 @@ packages:
240240
url: "https://pub.dev"
241241
source: hosted
242242
version: "0.6.7"
243+
leak_tracker:
244+
dependency: transitive
245+
description:
246+
name: leak_tracker
247+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
248+
url: "https://pub.dev"
249+
source: hosted
250+
version: "10.0.5"
251+
leak_tracker_flutter_testing:
252+
dependency: transitive
253+
description:
254+
name: leak_tracker_flutter_testing
255+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
256+
url: "https://pub.dev"
257+
source: hosted
258+
version: "3.0.5"
259+
leak_tracker_testing:
260+
dependency: transitive
261+
description:
262+
name: leak_tracker_testing
263+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
264+
url: "https://pub.dev"
265+
source: hosted
266+
version: "3.0.1"
243267
lint:
244268
dependency: "direct dev"
245269
description:
@@ -268,26 +292,26 @@ packages:
268292
dependency: transitive
269293
description:
270294
name: matcher
271-
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
295+
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
272296
url: "https://pub.dev"
273297
source: hosted
274-
version: "0.12.16"
298+
version: "0.12.16+1"
275299
material_color_utilities:
276300
dependency: transitive
277301
description:
278302
name: material_color_utilities
279-
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
303+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
280304
url: "https://pub.dev"
281305
source: hosted
282-
version: "0.5.0"
306+
version: "0.11.1"
283307
meta:
284308
dependency: transitive
285309
description:
286310
name: meta
287-
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
311+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
288312
url: "https://pub.dev"
289313
source: hosted
290-
version: "1.10.0"
314+
version: "1.15.0"
291315
mime:
292316
dependency: transitive
293317
description:
@@ -332,10 +356,10 @@ packages:
332356
dependency: transitive
333357
description:
334358
name: path
335-
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
359+
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
336360
url: "https://pub.dev"
337361
source: hosted
338-
version: "1.8.3"
362+
version: "1.9.0"
339363
path_provider:
340364
dependency: transitive
341365
description:
@@ -585,26 +609,26 @@ packages:
585609
dependency: "direct dev"
586610
description:
587611
name: test
588-
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
612+
sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e"
589613
url: "https://pub.dev"
590614
source: hosted
591-
version: "1.24.9"
615+
version: "1.25.7"
592616
test_api:
593617
dependency: transitive
594618
description:
595619
name: test_api
596-
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
620+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
597621
url: "https://pub.dev"
598622
source: hosted
599-
version: "0.6.1"
623+
version: "0.7.2"
600624
test_core:
601625
dependency: transitive
602626
description:
603627
name: test_core
604-
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
628+
sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696"
605629
url: "https://pub.dev"
606630
source: hosted
607-
version: "0.5.9"
631+
version: "0.6.4"
608632
typed_data:
609633
dependency: transitive
610634
description:
@@ -625,10 +649,10 @@ packages:
625649
dependency: transitive
626650
description:
627651
name: vm_service
628-
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
652+
sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc
629653
url: "https://pub.dev"
630654
source: hosted
631-
version: "13.0.0"
655+
version: "14.2.4"
632656
watcher:
633657
dependency: transitive
634658
description:
@@ -686,5 +710,5 @@ packages:
686710
source: hosted
687711
version: "3.1.2"
688712
sdks:
689-
dart: ">=3.2.0 <3.2.7"
690-
flutter: ">=3.16.0"
713+
dart: ">=3.5.0 <4.0.0"
714+
flutter: ">=3.18.0-18.0.pre.54"

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage: https://dartoos.dev
55
repository: https://github.com/dartoos-dev/json_cache
66

77
environment:
8-
sdk: ">=2.16.0 <3.2.7"
8+
sdk: ^3.5.0
99
flutter: ">=1.17.0"
1010

1111
dependencies:
@@ -14,9 +14,9 @@ dependencies:
1414
flutter_secure_storage: ^9.0.0
1515
hive: ^2.2.3
1616
localstorage: ^4.0.1+4
17-
mutex: ^3.0.1
17+
mutex: ^3.1.0
1818
safe_local_storage: ^1.0.2
19-
shared_preferences: ^2.2.0
19+
shared_preferences: ^2.2.2
2020

2121
dev_dependencies:
2222
flutter_test:

0 commit comments

Comments
 (0)