11name : Flutter checks
22
33on :
4+ workflow_dispatch :
45 pull_request :
56 push :
67 branches :
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
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
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
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
0 commit comments