Skip to content

Commit 48a7244

Browse files
committed
Update pipeline
1 parent 920ea94 commit 48a7244

File tree

7 files changed

+88
-15
lines changed

7 files changed

+88
-15
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,3 @@ updates:
2525
ignore:
2626
- dependency-name: "*"
2727
update-types: ["version-update:semver-minor", "version-update:semver-patch"]
28-
29-
- package-ecosystem: "gradle"
30-
directory: "android"
31-
schedule:
32-
interval: "daily"
33-
34-
- package-ecosystem: "gradle"
35-
directory: "example/android"
36-
schedule:
37-
interval: "daily"

.github/workflows/flutter_build_example.yml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,57 @@ jobs:
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v6
18+
1819
- name: Setup Java
1920
uses: actions/setup-java@v5
2021
with:
21-
distribution: 'temurin'
22-
java-version: '17'
22+
distribution: temurin
23+
java-version: 17
24+
2325
- name: Install Flutter
2426
uses: subosito/flutter-action@v2
27+
with:
28+
channel: stable
29+
cache: true
30+
2531
- name: Disable analytics
2632
run: flutter config --no-analytics
33+
2734
- name: Flutter pub get
2835
run: flutter pub get
36+
2937
- name: Flutter build appbundle
3038
run: |
3139
cd example
3240
flutter build appbundle --release
41+
42+
build_ios:
43+
name: Build example for iOS
44+
runs-on: macos-latest
45+
timeout-minutes: 10
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v6
49+
50+
- name: Install Flutter
51+
uses: subosito/flutter-action@v2
52+
with:
53+
channel: stable
54+
cache: true
55+
56+
- name: Disable analytics
57+
run: flutter config --no-analytics
58+
59+
- name: Flutter pub get
60+
run: flutter pub get
61+
62+
- name: Pod install
63+
run: |
64+
cd example
65+
cd ios
66+
pod install
67+
68+
- name: Flutter build iOS
69+
run: |
70+
cd example
71+
flutter build ios --release --no-codesign

.github/workflows/flutter_checks.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ jobs:
1515
steps:
1616
- name: Checkout repository
1717
uses: actions/checkout@v6
18+
1819
- name: Install Flutter
1920
uses: subosito/flutter-action@v2
21+
with:
22+
channel: stable
23+
cache: true
24+
2025
- name: Disable analytics
2126
run: flutter config --no-analytics
27+
2228
- name: Flutter pub get
2329
run: flutter pub get
2430

@@ -29,12 +35,19 @@ jobs:
2935
steps:
3036
- name: Checkout repository
3137
uses: actions/checkout@v6
38+
3239
- name: Install Flutter
3340
uses: subosito/flutter-action@v2
41+
with:
42+
channel: stable
43+
cache: true
44+
3445
- name: Disable analytics
3546
run: flutter config --no-analytics
47+
3648
- name: Flutter pub get
3749
run: flutter pub get
50+
3851
- name: Check Dart formatting
3952
run: dart format --line-length 80 --set-exit-if-changed .
4053

@@ -45,12 +58,19 @@ jobs:
4558
steps:
4659
- name: Checkout repository
4760
uses: actions/checkout@v6
61+
4862
- name: Install Flutter
4963
uses: subosito/flutter-action@v2
64+
with:
65+
channel: stable
66+
cache: true
67+
5068
- name: Disable analytics
5169
run: flutter config --no-analytics
70+
5271
- name: Flutter pub get
5372
run: flutter pub get
73+
5474
- name: Run Dart analyze
5575
uses: invertase/[email protected]
5676

@@ -61,12 +81,19 @@ jobs:
6181
steps:
6282
- name: Checkout repository
6383
uses: actions/checkout@v6
84+
6485
- name: Install Flutter
6586
uses: subosito/flutter-action@v2
87+
with:
88+
channel: stable
89+
cache: true
90+
6691
- name: Disable analytics
6792
run: flutter config --no-analytics
93+
6894
- name: Flutter pub get
6995
run: flutter pub get
96+
7097
- name: Flutter test
7198
run: flutter test
7299

@@ -77,14 +104,21 @@ jobs:
77104
steps:
78105
- name: Checkout repository
79106
uses: actions/checkout@v6
107+
80108
- name: Install Flutter
81109
uses: subosito/flutter-action@v2
110+
with:
111+
channel: stable
112+
cache: true
113+
82114
- name: Disable analytics
83115
run: flutter config --no-analytics
116+
84117
- name: Flutter pub get
85118
run: |
86119
cd example
87120
flutter pub get
121+
88122
- name: Flutter test example
89123
run: |
90124
cd example

.github/workflows/integration_tests.yml renamed to .github/workflows/integration_tests_android.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- main
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
integration_test:
1216
name: Integration test on Android API ${{ matrix.api-level }} - ${{ matrix.profile }}
@@ -15,12 +19,12 @@ jobs:
1519
strategy:
1620
fail-fast: false
1721
matrix:
18-
api-level: [24, 26, 28, 30, 32, 34, 35]
22+
api-level: [24, 30, 35]
1923
profile: [medium_phone]
2024

2125
steps:
2226
- name: Checkout repository
23-
uses: actions/checkout@v5
27+
uses: actions/checkout@v6
2428

2529
- name: Setup Java
2630
uses: actions/setup-java@v5
@@ -32,6 +36,7 @@ jobs:
3236
uses: subosito/flutter-action@v2
3337
with:
3438
channel: stable
39+
cache: true
3540

3641
- name: Disable analytics
3742
run: flutter config --no-analytics

.github/workflows/pub_publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v6
13+
1314
- name: Publish
1415
uses: k-paxian/[email protected]
1516
with:

.github/workflows/pub_publish_dry_run.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15+
1516
- name: Publish dry run
1617
uses: k-paxian/[email protected]
1718
with:
18-
credentialJson: 'MockCredentialJson'
19+
credentialJson: MockCredentialJson
1920
dryRunOnly: true

.github/workflows/pub_score.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v6
16+
1617
- uses: axel-op/dart-package-analyzer@v3
1718
id: workflow
1819
with:
1920
githubToken: ${{ secrets.GITHUB_TOKEN }}
21+
2022
- name: Check score
2123
env:
2224
TOTAL: ${{ steps.workflow.outputs.total }}
@@ -26,5 +28,6 @@ jobs:
2628
if (( MISSING_POINTS > 0 ))
2729
then
2830
echo Score can be improved!
31+
echo Run pana to find out how.
2932
exit 1
3033
fi

0 commit comments

Comments
 (0)