mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
Update the CI to check the fmt and clippy
This commit is contained in:
parent
9dce41ed6b
commit
cf5e228288
@ -13,13 +13,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||||
displayName: 'Install rustc'
|
$HOME/.cargo/bin/rustup component add rustfmt
|
||||||
|
displayName: 'Install rustc and components'
|
||||||
- script: |
|
- script: |
|
||||||
$HOME/.cargo/bin/cargo check
|
$HOME/.cargo/bin/cargo check
|
||||||
displayName: 'Check MeiliDB'
|
displayName: 'Check MeiliDB'
|
||||||
- script: |
|
- script: |
|
||||||
$HOME/.cargo/bin/cargo test
|
$HOME/.cargo/bin/cargo test
|
||||||
displayName: 'Test MeiliDB'
|
displayName: 'Test MeiliDB'
|
||||||
|
- script: |
|
||||||
|
$HOME/.cargo/bin/cargo fmt --all -- --check
|
||||||
|
displayName: 'Fmt MeiliDB'
|
||||||
|
|
||||||
- job: build
|
- job: build
|
||||||
dependsOn:
|
dependsOn:
|
||||||
@ -31,7 +35,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
|
||||||
displayName: 'Install rustc'
|
$HOME/.cargo/bin/rustup component add rustfmt
|
||||||
|
displayName: 'Install rustc and components'
|
||||||
- script: |
|
- script: |
|
||||||
$HOME/.cargo/bin/cargo build --release
|
$HOME/.cargo/bin/cargo build --release
|
||||||
displayName: 'Build MeiliDB'
|
displayName: 'Build MeiliDB'
|
||||||
|
Loading…
Reference in New Issue
Block a user