-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (41 loc) · 1.24 KB
/
check.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
47
48
49
50
51
52
53
54
55
56
57
58
59
# SPDX-FileCopyrightText: 2022 Foundation Devices Inc.
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Check
on:
pull_request:
branches: [ main ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.5'
- name: Install dependencies
run: flutter pub get
- name: Verify Dart formatting
run: dart format --output=none --set-exit-if-changed .
- run: rustup --version
- run: rustup component add rustfmt
- run: rustup component add clippy
- name: Verify Rust formatting
run: cargo fmt --all -- --check
- name: Catch common Rust mistakes
run: cargo clippy -- -Dwarnings -A clippy::missing_safety_doc
- name: Run Rust tests
run: cargo test
- name: Analyze Dart project source
run: flutter analyze
- name: Build Rust libs
run: cargo build
- name: Run Dart tests
run: flutter test