mirror of
https://github.com/VibedByKaKi/commet.git
synced 2026-11-10 16:52:52 +01:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
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
|