commet/.github/workflows/static-analysis.yml
2026-06-13 09:45:53 +09:30

49 lines
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: static-analysis
on:
pull_request:
merge_group:
env:
PROJECT_PATH: commet
jobs:
static-analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout ┏━┓ ︵ /(^.^/)
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup Flutter ╰(✿˙ᗜ˙)੭━☆゚.*・。゚
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.41.9'
channel: 'stable'
- name: Setup Tools ᕙ|” ◉ ◡ ◉ ”|ᕗ
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv libmimalloc-dev
- name: Configure Flutter (∩`-´)⊃━☆゚.*・。゚
run: flutter config --enable-linux-desktop
- name: Check Code Style
run: |
cd $PROJECT_PATH
flutter doctor
flutter pub get
rm -r lib/generated
dart format -o none --show all --set-exit-if-changed .
- name: Code Generation __φ(..;)
run: |
cd $PROJECT_PATH
dart run scripts/codegen.dart
- name: Check Warnings
run: |
cd $PROJECT_PATH
dart analyze