Skip to content

Commit 1070207

Browse files
committed
Update pipelines
1 parent 4e679f9 commit 1070207

6 files changed

Lines changed: 58 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +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: "example/android"
31-
schedule:
32-
interval: "daily"

.github/workflows/flutter_build_example.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,25 @@ 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
@@ -38,17 +46,25 @@ jobs:
3846
steps:
3947
- name: Checkout repository
4048
uses: actions/checkout@v6
49+
4150
- name: Install Flutter
4251
uses: subosito/flutter-action@v2
52+
with:
53+
channel: stable
54+
cache: true
55+
4356
- name: Disable analytics
4457
run: flutter config --no-analytics
58+
4559
- name: Flutter pub get
4660
run: flutter pub get
61+
4762
- name: Pod install
4863
run: |
4964
cd example
5065
cd ios
5166
pod install
67+
5268
- name: Flutter build iOS
5369
run: |
5470
cd example

.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/github-action-dart-analyzer@v3.0.0
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/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/dart-package-publisher@v1.6
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/dart-package-publisher@v1.6
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)