mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2026-01-18 08:43:56 +00:00
* ci: dart analyser * ci(analyser): clarify the dart analysing step * refactor: ignore generated files * ci(analyser): apply suggestion from code-reviewer Co-Authored-By: Palm <palmpasuthorn@gmail.com> * ci(analyser): apply suggestion from code-reviewer Co-Authored-By: Palm <palmpasuthorn@gmail.com> * ci(analyser): apply suggestion from code-reviewer Co-authored-by: Palm <palmpasuthorn@gmail.com> --------- Co-authored-by: Palm <palmpasuthorn@gmail.com>
26 lines
655 B
YAML
26 lines
655 B
YAML
name: Analyze Code
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "dev" ]
|
|
pull_request:
|
|
branches: [ "main", "dev" ]
|
|
|
|
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 |