-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.21 KB
/
Copy pathrust.yml
File metadata and controls
58 lines (46 loc) · 1.21 KB
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
name: Rust CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install nightly toolchain
run: rustup install nightly
- name: Add rustfmt for nightly
run: rustup component add rustfmt --toolchain nightly
- name: Check
working-directory: signer
run: cargo +nightly fmt --all --check -- --config format_code_in_doc_comments=true
check:
name: Check crates
runs-on: ubuntu-latest
strategy:
matrix:
crate:
- nostr-android-signer-proto
- nostr-android-signer-proxy
- nostr-android-signer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Rust Cache
uses: Swatinem/rust-cache@v2.7.8
with:
key: ${{ matrix.crate }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Check
run: cargo check -p ${{ matrix.crate }}
- name: Clippy
run: cargo clippy -p ${{ matrix.crate }} -- -D warnings
- name: Test
run: cargo test -p ${{ matrix.crate }}