2023-01-26 16:40:19 +02:00
|
|
|
name: Static Code Analysis
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
|
2023-02-19 18:44:53 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-26 16:40:19 +02:00
|
|
|
jobs:
|
|
|
|
mobile-dart-analyze:
|
|
|
|
name: Run Dart Code Analysis
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Flutter SDK
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
2023-05-12 16:21:13 +02:00
|
|
|
channel: "stable"
|
2023-08-19 00:52:40 +02:00
|
|
|
flutter-version: "3.13.0"
|
2023-01-26 16:40:19 +02:00
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: dart pub get
|
|
|
|
working-directory: ./mobile
|
|
|
|
|
|
|
|
- name: Run dart analyze
|
|
|
|
run: dart analyze --fatal-infos
|
|
|
|
working-directory: ./mobile
|