Changed CI and default.json to run clippy
This commit is contained in:
parent
c303c4e8f9
commit
3460a24da7
2 changed files with 23 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -28,6 +28,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
rustup set profile minimal
|
rustup set profile minimal
|
||||||
rustup update stable
|
rustup update stable
|
||||||
|
rustup component add clippy
|
||||||
rustup target add wasm32-wasi
|
rustup target add wasm32-wasi
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
|
@ -39,7 +40,10 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
clean: false
|
clean: false
|
||||||
|
|
||||||
|
- name: Run clippy
|
||||||
|
run: cargo clippy
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --workspace --no-fail-fast
|
run: cargo test --workspace --no-fail-fast
|
||||||
|
|
||||||
|
|
|
@ -145,5 +145,22 @@
|
||||||
"tab_size": 2
|
"tab_size": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lsp": {}
|
//LSP Specific settings.
|
||||||
|
"lsp": {
|
||||||
|
//Specify the LSP name as a key here.
|
||||||
|
//As of 8/10/22, supported LSPs are:
|
||||||
|
//pyright
|
||||||
|
//gopls
|
||||||
|
//rust-analyzer
|
||||||
|
//typescript-language-server
|
||||||
|
//vscode-json-languageserver
|
||||||
|
"rust_analyzer": {
|
||||||
|
//These initialization options are merged into Zed's defaults
|
||||||
|
"initialization_options": {
|
||||||
|
"checkOnSave": {
|
||||||
|
"command": "clippy"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue