ci: add rustup step
This commit is contained in:
parent
f517307538
commit
ca05de5cd5
1 changed files with 8 additions and 5 deletions
|
@ -1,17 +1,20 @@
|
||||||
when:
|
when:
|
||||||
- event: pull_request
|
- event: pull_request
|
||||||
- event: push
|
- event: push
|
||||||
- path:
|
- path:
|
||||||
include: ['*.rs']
|
include: ["*.rs"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
cargo_clippy:
|
configure_rustup:
|
||||||
image: rust
|
image: rust
|
||||||
commands: |
|
commands: |
|
||||||
rustup update stable && rustup default stable
|
rustup update stable && rustup default stable
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
# cargo clippy --all-targets --all-features
|
cargo_clippy:
|
||||||
|
image: rust
|
||||||
|
commands:
|
||||||
|
- cargo clippy --all-targets --all-features
|
||||||
cargo_test:
|
cargo_test:
|
||||||
image: rust
|
image: rust
|
||||||
commands:
|
commands:
|
||||||
- cargo test
|
- cargo test --all-features
|
||||||
|
|
Loading…
Reference in a new issue