1- # This workflow uses actions that are not certified by GitHub.
2- # They are provided by a third-party and are governed by
3- # separate terms of service, privacy policy, and support
4- # documentation.
5-
61name : Check source code quality
72
83on :
94 pull_request :
105 branches : ["main"]
6+ paths :
7+ - " **.dart"
8+ - " pubspec.yaml"
9+ - " analysis_options.yaml"
10+ - " .github/workflows/**"
11+
12+ push :
13+ branches : ["main"]
14+ paths :
15+ - " **.dart"
16+ - " pubspec.yaml"
17+ - " analysis_options.yaml"
18+ - " .github/workflows/**"
19+
20+ concurrency :
21+ group : ${{ github.workflow }}-${{ github.ref }}
22+ cancel-in-progress : true
1123
1224jobs :
1325 lint :
1426 name : Check lints
1527 runs-on : ubuntu-latest
16-
28+ timeout-minutes : 5
1729 steps :
1830 - uses : actions/checkout@v6
1931 - uses : subosito/flutter-action@v2
@@ -22,17 +34,16 @@ jobs:
2234 cache : true
2335 - run : flutter --version
2436
25- # Get flutter dependencies.
2637 - name : Install dependencies
2738 run : flutter pub get
2839
29- # Check for any formatting issues in the code.
3040 - name : Verify formatting
3141 run : dart format --set-exit-if-changed .
3242
3343 analyze :
3444 name : Check code analysis
3545 runs-on : ubuntu-latest
46+ timeout-minutes : 5
3647 steps :
3748 - uses : actions/checkout@v6
3849 - uses : subosito/flutter-action@v2
4152 cache : true
4253 - run : flutter --version
4354
44- # Get flutter dependencies.
4555 - name : Install dependencies
4656 run : flutter pub get
4757
48- # Statically analyze the Dart code for any errors.
4958 - name : Analyze project source
5059 run : flutter analyze .
0 commit comments