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