@@ -2,9 +2,9 @@ name: Check
22
33on :
44 push :
5- branches : [ "master" ]
5+ branches : ["master"]
66 pull_request :
7- branches : [ "master" ]
7+ branches : ["master"]
88
99env :
1010 CARGO_TERM_COLOR : always
@@ -14,59 +14,59 @@ jobs:
1414 runs-on : ubuntu-latest
1515
1616 steps :
17- - uses : actions/checkout@v3
18- - name : Cargo Target Cache
19- uses : actions/cache@v3
20- with :
21- path : target
22- key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
23- restore-keys : |
24- ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
25- ${{ runner.os }}-cargo-target
26- - name : Build
27- run : cargo build --verbose --all --all-features
28- - name : Run tests
29- run : cargo test --verbose --all --all-features
17+ - uses : actions/checkout@v3
18+ - name : Cargo Target Cache
19+ uses : actions/cache@v3
20+ with :
21+ path : target
22+ key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
23+ restore-keys : |
24+ ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
25+ ${{ runner.os }}-cargo-target
26+ - name : Build
27+ run : cargo build --verbose --all --all-features
28+ - name : Run tests
29+ run : cargo test --verbose --all --all-features
3030
3131 msrv :
3232 runs-on : ubuntu-latest
33-
33+
3434 strategy :
3535 matrix :
36- rust : ["1.64 .0"]
36+ rust : ["1.65 .0"]
3737
3838 steps :
39- - uses : actions/checkout@v3
40- - name : Cargo Target Cache
41- uses : actions/cache@v3
42- with :
43- path : target
44- key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
45- restore-keys : |
46- ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
47- ${{ runner.os }}-cargo-target
48- - name : Install Rust
49- run : |
50- rustup toolchain install ${{ matrix.rust }}
51- rustup default ${{ matrix.rust }}
52- rustup component add rustfmt
53- - name : Build
54- run : cargo build --verbose
39+ - uses : actions/checkout@v3
40+ - name : Cargo Target Cache
41+ uses : actions/cache@v3
42+ with :
43+ path : target
44+ key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
45+ restore-keys : |
46+ ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
47+ ${{ runner.os }}-cargo-target
48+ - name : Install Rust
49+ run : |
50+ rustup toolchain install ${{ matrix.rust }}
51+ rustup default ${{ matrix.rust }}
52+ rustup component add rustfmt
53+ - name : Build
54+ run : cargo build --verbose
5555
5656 clippy_and_fmt :
5757 runs-on : ubuntu-latest
5858
5959 steps :
60- - uses : actions/checkout@v3
61- - name : Cargo Target Cache
62- uses : actions/cache@v3
63- with :
64- path : target
65- key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
66- restore-keys : |
67- ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
68- ${{ runner.os }}-cargo-target
69- - name : Clippy
70- run : cargo clippy --verbose --all --all-features -- -D warnings
71- - name : Rustfmt
72- run : cargo fmt --verbose --all -- --check
60+ - uses : actions/checkout@v3
61+ - name : Cargo Target Cache
62+ uses : actions/cache@v3
63+ with :
64+ path : target
65+ key : ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
66+ restore-keys : |
67+ ${{ runner.os }}-cargo-target-${{ hashFiles('**/Cargo.toml') }}
68+ ${{ runner.os }}-cargo-target
69+ - name : Clippy
70+ run : cargo clippy --verbose --all --all-features -- -D warnings
71+ - name : Rustfmt
72+ run : cargo fmt --verbose --all -- --check
0 commit comments