-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.24 KB
/
check.yaml
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
47
48
49
name: Check
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
check-backend:
name: Check Backend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run Cargo Check
working-directory: rust-backend
run: cargo check
- name: Run Unit Tests
working-directory: rust-backend
run: cargo test
check-frontend:
name: Check Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.24.1
- name: Get Dependencies
working-directory: flutter_frontend
run: flutter pub get
- name: Run Builder
working-directory: flutter_frontend
run: dart pub run build_runner build --delete-conflicting-outputs
- name: Analyze Code
working-directory: flutter_frontend
run: flutter analyze
- name: Run Tests
working-directory: flutter_frontend
run: flutter test