Skip to content

Commit 79e0310

Browse files
committed
Improve workflows and dependabot
1 parent 6c6e56f commit 79e0310

5 files changed

Lines changed: 30 additions & 8 deletions

File tree

.github/workflows/flutter_build_example.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Flutter build example
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
@@ -14,10 +15,12 @@ jobs:
1415
steps:
1516
- name: Checkout repository
1617
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.head_ref }}
1720
- name: Setup Java
1821
uses: actions/setup-java@v3
1922
with:
20-
distribution: 'adopt'
23+
distribution: 'temurin'
2124
java-version: '17'
2225
- name: Install Flutter
2326
uses: subosito/flutter-action@v2

.github/workflows/flutter_checks.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Flutter checks
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
@@ -14,6 +15,8 @@ jobs:
1415
steps:
1516
- name: Checkout repository
1617
uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.head_ref }}
1720
- name: Install Flutter
1821
uses: subosito/flutter-action@v2
1922
- name: Disable analytics
@@ -28,6 +31,8 @@ jobs:
2831
steps:
2932
- name: Checkout repository
3033
uses: actions/checkout@v3
34+
with:
35+
ref: ${{ github.head_ref }}
3136
- name: Install Flutter
3237
uses: subosito/flutter-action@v2
3338
- name: Disable analytics
@@ -44,14 +49,16 @@ jobs:
4449
steps:
4550
- name: Checkout repository
4651
uses: actions/checkout@v3
52+
with:
53+
ref: ${{ github.head_ref }}
4754
- name: Install Flutter
4855
uses: subosito/flutter-action@v2
4956
- name: Disable analytics
5057
run: flutter config --no-analytics
5158
- name: Flutter pub get
5259
run: flutter pub get
5360
- name: Run Dart analyze
54-
uses: invertase/github-action-dart-analyzer@v1
61+
uses: invertase/github-action-dart-analyzer@v2.0.0
5562

5663
test:
5764
name: Flutter test
@@ -60,6 +67,8 @@ jobs:
6067
steps:
6168
- name: Checkout repository
6269
uses: actions/checkout@v3
70+
with:
71+
ref: ${{ github.head_ref }}
6372
- name: Install Flutter
6473
uses: subosito/flutter-action@v2
6574
- name: Disable analytics
@@ -76,6 +85,8 @@ jobs:
7685
steps:
7786
- name: Checkout repository
7887
uses: actions/checkout@v3
88+
with:
89+
ref: ${{ github.head_ref }}
7990
- name: Install Flutter
8091
uses: subosito/flutter-action@v2
8192
- name: Disable analytics

.github/workflows/pub_publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
name: Publish
1+
name: Pub publish
22

33
on:
44
release:
55
types: [published]
66

77
jobs:
88
publish:
9-
name: Publish
9+
name: Pub publish
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13+
with:
14+
ref: ${{ github.head_ref }}
1315
- name: Publish
14-
uses: k-paxian/dart-package-publisher@v1.5.1
16+
uses: k-paxian/dart-package-publisher@v1.6
1517
with:
1618
credentialJson: ${{ secrets.CREDENTIALS }}
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
name: Publish dry run
1+
name: Pub publish dry run
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78

89
jobs:
910
publish-dry-run:
10-
name: Publish dry run
11+
name: Pub publish dry run
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.head_ref }}
1417
- name: Publish dry run
15-
uses: k-paxian/dart-package-publisher@v1.5.1
18+
uses: k-paxian/dart-package-publisher@v1.6
1619
with:
1720
credentialJson: ${{ secrets.CREDENTIALS }}
1821
dryRunOnly: true

.github/workflows/pub_score.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Check pub score
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
@@ -12,6 +13,8 @@ jobs:
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v3
16+
with:
17+
ref: ${{ github.head_ref }}
1518
- uses: axel-op/dart-package-analyzer@v3
1619
id: workflow
1720
with:

0 commit comments

Comments
 (0)