|
@@ -20,12 +20,12 @@ jobs:
|
20
|
20
|
steps:
|
21
|
21
|
- uses: actions/checkout@v3
|
22
|
22
|
- name: Install Rust Toolchain
|
23
|
|
- uses: actions-rs/toolchain@v1
|
|
23
|
+ uses: dtolnay/rust-toolchain@nightly
|
24
|
24
|
with:
|
25
|
|
- toolchain: nightly
|
26
|
25
|
components: rustfmt
|
|
26
|
+ - uses: Swatinem/rust-cache@v2
|
27
|
27
|
- name: cargo fmt
|
28
|
|
- run: cargo +nightly fmt -- --check
|
|
28
|
+ run: cargo fmt -- --check
|
29
|
29
|
clippy:
|
30
|
30
|
name: clippy
|
31
|
31
|
needs: fmt
|
|
@@ -33,12 +33,12 @@ jobs:
|
33
|
33
|
steps:
|
34
|
34
|
- uses: actions/checkout@v3
|
35
|
35
|
- name: Install Rust Toolchain
|
36
|
|
- uses: actions-rs/toolchain@v1
|
|
36
|
+ uses: dtolnay/rust-toolchain@nightly
|
37
|
37
|
with:
|
38
|
|
- toolchain: nightly
|
39
|
38
|
components: clippy
|
|
39
|
+ - uses: Swatinem/rust-cache@v2
|
40
|
40
|
- name: cargo clippy
|
41
|
|
- run: cargo +nightly clippy --workspace --tests -- -D warnings
|
|
41
|
+ run: cargo clippy --workspace --tests -- -D warnings
|
42
|
42
|
tests:
|
43
|
43
|
name: tests
|
44
|
44
|
needs: [clippy, fmt]
|
|
@@ -46,9 +46,8 @@ jobs:
|
46
|
46
|
steps:
|
47
|
47
|
- uses: actions/checkout@v3
|
48
|
48
|
- name: Install Rust Toolchain
|
49
|
|
- uses: actions-rs/toolchain@v1
|
50
|
|
- with:
|
51
|
|
- toolchain: stable
|
|
49
|
+ uses: dtolnay/rust-toolchain@stable
|
|
50
|
+ - uses: Swatinem/rust-cache@v2
|
52
|
51
|
- name: Run tests for [common-api]
|
53
|
52
|
run: cargo test --tests --all-features
|
54
|
53
|
tests-web:
|