Skip to content

Commit eae5441

Browse files
committed
Update ci
1 parent dd6c492 commit eae5441

File tree

5 files changed

+112
-48
lines changed

5 files changed

+112
-48
lines changed

.github/workflows/build.yaml

Lines changed: 64 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ name: build
44
# events but only for the develop branch
55
on:
66
push:
7-
branches: [ develop, master ]
7+
branches: [develop, main]
88
paths:
9-
- 'flutter_cache_manager/**'
9+
- "flutter_cache_manager/**"
10+
- ".github/workflows/**"
1011
pull_request:
11-
branches: [ develop ]
12+
branches: [develop]
1213
paths:
13-
- 'flutter_cache_manager/**'
14+
- "flutter_cache_manager/**"
15+
- ".github/workflows/**"
1416

1517
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1618
jobs:
@@ -26,12 +28,15 @@ jobs:
2628
# Steps represent a sequence of tasks that will be executed as part of the job
2729
steps:
2830
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
29-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3032

3133
# Make sure the stable version of Flutter is available
32-
- uses: subosito/flutter-action@v2
34+
- name: Set up Flutter
35+
uses: subosito/flutter-action@v2
3336
with:
34-
channel: 'stable'
37+
channel: "stable"
38+
architecture: x64
39+
cache: true
3540

3641
# Download all Flutter packages
3742
- name: Download dependencies
@@ -55,12 +60,15 @@ jobs:
5560
# Steps represent a sequence of tasks that will be executed as part of the job
5661
steps:
5762
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
58-
- uses: actions/checkout@v3
63+
- uses: actions/checkout@v4
5964

6065
# Make sure the stable version of Flutter is available
61-
- uses: subosito/flutter-action@v2
66+
- name: Set up Flutter
67+
uses: subosito/flutter-action@v2
6268
with:
63-
channel: 'stable'
69+
channel: "stable"
70+
architecture: x64
71+
cache: true
6472

6573
# Download all Flutter packages
6674
- name: Download dependencies
@@ -85,18 +93,21 @@ jobs:
8593
# Steps represent a sequence of tasks that will be executed as part of the job
8694
steps:
8795
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
88-
- uses: actions/checkout@v3
96+
- uses: actions/checkout@v4
8997

9098
# Ensure correct JAVA version is installed.
91-
- uses: actions/setup-java@v3
99+
- uses: actions/setup-java@v4
92100
with:
93-
distribution: 'zulu'
94-
java-version: '17'
101+
distribution: "zulu"
102+
java-version: "17"
95103

96104
# Make sure the stable version of Flutter is available
97-
- uses: subosito/flutter-action@v2
105+
- name: Set up Flutter
106+
uses: subosito/flutter-action@v2
98107
with:
99-
channel: 'stable'
108+
channel: "stable"
109+
architecture: x64
110+
cache: true
100111

101112
# Download all Flutter packages
102113
- name: Download dependencies
@@ -121,12 +132,15 @@ jobs:
121132
# Steps represent a sequence of tasks that will be executed as part of the job
122133
steps:
123134
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
124-
- uses: actions/checkout@v3
135+
- uses: actions/checkout@v4
125136

126137
# Make sure the stable version of Flutter is available
127-
- uses: subosito/flutter-action@v2
138+
- name: Set up Flutter
139+
uses: subosito/flutter-action@v2
128140
with:
129-
channel: 'stable'
141+
channel: "stable"
142+
architecture: x64
143+
cache: true
130144

131145
# Download all Flutter packages
132146
- name: Download dependencies
@@ -151,12 +165,15 @@ jobs:
151165
# Steps represent a sequence of tasks that will be executed as part of the job
152166
steps:
153167
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
154-
- uses: actions/checkout@v3
168+
- uses: actions/checkout@v4
155169

156170
# Make sure the stable version of Flutter is available
157-
- uses: subosito/flutter-action@v2
171+
- name: Set up Flutter
172+
uses: subosito/flutter-action@v2
158173
with:
159-
channel: 'stable'
174+
channel: "stable"
175+
architecture: x64
176+
cache: true
160177

161178
# Enable platform support
162179
- name: Enable macOS
@@ -186,12 +203,15 @@ jobs:
186203
# Steps represent a sequence of tasks that will be executed as part of the job
187204
steps:
188205
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
189-
- uses: actions/checkout@v3
206+
- uses: actions/checkout@v4
190207

191208
# Make sure the stable version of Flutter is available
192-
- uses: subosito/flutter-action@v2
209+
- name: Set up Flutter
210+
uses: subosito/flutter-action@v2
193211
with:
194-
channel: 'stable'
212+
channel: "stable"
213+
architecture: x64
214+
cache: true
195215

196216
# Enable platform support
197217
- name: Enable Windows
@@ -225,12 +245,15 @@ jobs:
225245
- run: sudo apt-get install -y ninja-build libgtk-3-dev libblkid-dev
226246

227247
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
228-
- uses: actions/checkout@v3
248+
- uses: actions/checkout@v4
229249

230250
# Make sure the stable version of Flutter is available
231-
- uses: subosito/flutter-action@v2
251+
- name: Set up Flutter
252+
uses: subosito/flutter-action@v2
232253
with:
233-
channel: 'stable'
254+
channel: "stable"
255+
architecture: x64
256+
cache: true
234257

235258
# Enable platform support
236259
- name: Enable Linux
@@ -265,12 +288,15 @@ jobs:
265288
# Steps represent a sequence of tasks that will be executed as part of the job
266289
steps:
267290
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
268-
- uses: actions/checkout@v3
291+
- uses: actions/checkout@v4
269292

270293
# Make sure the stable version of Flutter is available
271-
- uses: subosito/flutter-action@v2
294+
- name: Set up Flutter
295+
uses: subosito/flutter-action@v2
272296
with:
273-
channel: 'stable'
297+
channel: "stable"
298+
architecture: x64
299+
cache: true
274300

275301
# Download all Flutter packages
276302
- name: Download dependencies
@@ -293,12 +319,15 @@ jobs:
293319
# Steps represent a sequence of tasks that will be executed as part of the job
294320
steps:
295321
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
296-
- uses: actions/checkout@v3
322+
- uses: actions/checkout@v4
297323

298324
# Make sure the stable version of Flutter is available
299-
- uses: subosito/flutter-action@v2
325+
- name: Set up Flutter
326+
uses: subosito/flutter-action@v2
300327
with:
301-
channel: 'stable'
328+
channel: "stable"
329+
architecture: x64
330+
cache: true
302331

303332
# Download all Flutter packages
304333
- name: Download dependencies
@@ -311,7 +340,7 @@ jobs:
311340
working-directory: ${{env.source-directory}}
312341

313342
# Upload code coverage information
314-
- uses: codecov/codecov-action@v3
343+
- uses: codecov/codecov-action@v4
315344
with:
316345
files: ${{env.source-directory}}/coverage/lcov.info
317346
name: CacheManager

flutter_cache_manager/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ environment:
1010

1111
dependencies:
1212
clock: ^1.1.1
13-
collection: ^1.16.0
13+
collection: ^1.18.0
1414
file: ^7.0.0
1515
flutter:
1616
sdk: flutter
17-
http: ^1.1.0
17+
http: ^1.2.0
1818
path: ^1.9.0
1919
path_provider: ^2.1.2
2020
rxdart: '>=0.27.7 <0.29.0'
2121
sqflite: ^2.3.0
2222
uuid: ^4.4.0
2323

2424
dev_dependencies:
25-
build_runner: ^2.4.0
26-
flutter_lints: ^3.0.2
25+
build_runner: ^2.4.11
26+
flutter_lints: ^4.0.0
2727
flutter_test:
2828
sdk: flutter
2929
mockito: ^5.4.4

0 commit comments

Comments
 (0)