8
8
matrix :
9
9
rust :
10
10
- version : 1.58.1
11
- run-all : false
11
+ integration-tests : false
12
12
- version : 1.80.1
13
- run-all : true
13
+ integration-tests : true
14
14
15
15
steps :
16
16
- uses : actions/checkout@v2
@@ -34,25 +34,24 @@ jobs:
34
34
rustup default ${{ matrix.rust.version }}
35
35
36
36
- name : Check lib
37
- run : $HOME/.cargo/bin/cargo check --lib
38
-
39
- - name : Check all
40
- # We can't use --all-targets because it includes benches which requires nightly compiler
41
- run : $HOME/.cargo/bin/cargo check --workspace --lib --bins --examples --tests
42
- if : ${{ matrix.rust.run-all }}
43
-
44
- - name : Clippy
45
- # We can't use --all-targets because it includes benches which requires nightly compiler
46
- run : $HOME/.cargo/bin/cargo clippy --workspace --lib --bins --examples --tests
47
- if : ${{ matrix.rust.run-all }}
48
-
49
- - name : Check Format
50
- run : $HOME/.cargo/bin/cargo fmt --check
51
- if : ${{ matrix.rust.run-all }}
37
+ run : |
38
+ $HOME/.cargo/bin/cargo check --all-targets --no-default-features
39
+ $HOME/.cargo/bin/cargo check --all-targets
40
+ $HOME/.cargo/bin/cargo clippy --all-targets
41
+ $HOME/.cargo/bin/cargo fmt --check
42
+ $HOME/.cargo/bin/cargo test
43
+ env :
44
+ RUST_BACKTRACE : 1
52
45
53
- - name : Test
54
- run : $HOME/.cargo/bin/cargo test --workspace
55
- if : ${{ matrix.rust.run-all }}
46
+ - name : Check integration tests
47
+ run : |
48
+ pushd integration_tests
49
+ $HOME/.cargo/bin/cargo check --all-targets
50
+ $HOME/.cargo/bin/cargo clippy --all-targets
51
+ $HOME/.cargo/bin/cargo fmt --check
52
+ $HOME/.cargo/bin/cargo test
53
+ popd
54
+ if : ${{ matrix.rust.integration-tests }}
56
55
env :
57
56
RUST_BACKTRACE : 1
58
57
0 commit comments