-
Notifications
You must be signed in to change notification settings - Fork 11
49 lines (36 loc) · 1.05 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
# SPDX-FileCopyrightText: 2022 Foundation Devices Inc.
#
# SPDX-License-Identifier: MIT
name: Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.16.3'
- name: Install dependencies
run: flutter pub get
- name: Verify Dart formatting
run: dart format --output=none --set-exit-if-changed .
- name: Verify Rust formatting
run: cargo fmt --manifest-path rust/Cargo.toml --all -- --check
- name: Run Rust tests
run: cargo test --manifest-path rust/Cargo.toml
- name: Analyze Dart project source
run: flutter analyze
# - name: Run Dart tests
# run: flutter test