2023-01-26 14:40:19 +00:00
|
|
|
name: Static Code Analysis
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
2023-02-19 16:44:53 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-26 14:40:19 +00:00
|
|
|
jobs:
|
|
|
|
mobile-dart-analyze:
|
|
|
|
name: Run Dart Code Analysis
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2023-09-06 01:50:22 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-01-26 14:40:19 +00:00
|
|
|
|
|
|
|
- name: Setup Flutter SDK
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
2023-05-12 14:21:13 +00:00
|
|
|
channel: "stable"
|
2023-10-11 01:12:01 +00:00
|
|
|
flutter-version: "3.13.6"
|
2023-01-26 14:40:19 +00:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: dart pub get
|
|
|
|
working-directory: ./mobile
|
|
|
|
|
|
|
|
- name: Run dart analyze
|
|
|
|
run: dart analyze --fatal-infos
|
|
|
|
working-directory: ./mobile
|
2023-11-19 16:04:44 +00:00
|
|
|
|
|
|
|
# Enable after riverpod generator migration is completed
|
|
|
|
# - name: Run dart custom lint
|
|
|
|
# run: dart run custom_lint
|
|
|
|
# working-directory: ./mobile
|