2023-03-28 10:47:34 +02:00
|
|
|
name: Analyze Code
|
|
|
|
|
|
|
|
on:
|
2023-07-16 11:17:15 +02:00
|
|
|
push:
|
|
|
|
branches: [ "dev" ]
|
|
|
|
paths:
|
|
|
|
- "**.dart"
|
|
|
|
- ".github/workflows/analyze.yml"
|
2023-03-28 10:47:34 +02:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main", "dev" ]
|
2023-07-16 12:10:29 +02:00
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
|
|
|
- ready_for_review
|
2023-03-29 19:51:08 +02:00
|
|
|
paths:
|
|
|
|
- "**.dart"
|
|
|
|
- ".github/workflows/analyze.yml"
|
2023-03-28 10:47:34 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-07-16 11:21:16 +02:00
|
|
|
name: "Static analysis & format check"
|
2023-03-28 10:47:34 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Flutter
|
|
|
|
uses: subosito/flutter-action@v2
|
|
|
|
with:
|
|
|
|
channel: 'stable'
|
|
|
|
cache: true
|
|
|
|
- name: Install Flutter dependencies
|
|
|
|
run: flutter pub get
|
|
|
|
- name: Generate files with Builder
|
|
|
|
run: flutter packages pub run build_runner build --delete-conflicting-outputs
|
|
|
|
- name: Analyze code
|
|
|
|
uses: ValentinVignal/action-dart-analyze@v0.15
|
|
|
|
with:
|
2023-03-29 19:51:08 +02:00
|
|
|
fail-on: warning
|