mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
28 lines
686 B
YAML
28 lines
686 B
YAML
name: Analyze Code
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "main", "dev" ]
|
|
paths:
|
|
- "**.dart"
|
|
- ".github/workflows/analyze.yml"
|
|
|
|
jobs:
|
|
build:
|
|
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:
|
|
fail-on: warning
|