-
-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (39 loc) · 1.02 KB
/
check-styles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: Style
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust-style:
runs-on: ubuntu-latest
name: Rust Formatting
steps:
- uses: actions/checkout@v4
- name: Install specific toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rust Format
run: cargo fmt --all --check
dart-style:
name: Flutter Analyze
runs-on: ubuntu-latest
strategy:
matrix:
path: ['app', 'packages/rust_sdk', 'packages/acter_trigger_auto_complete']
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.22'
channel: 'stable'
- name: Generate env
working-directory: ./app
run: dart run enven
- working-directory: ${{ matrix.path }}
run: flutter analyze
name: lint ${{ matrix.path }}