Skip to content

Commit

Permalink
Added Clippy, better CI and better workspace recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Aug 2, 2024
1 parent 92b0704 commit 3ef200f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
name: Run integration tests
name: Run CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
test:
ci:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --verbose
- name: Run audit
run: cargo audit
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"tamasfe.even-better-toml",
"github.remotehub",
"dustypomerleau.rust-syntax",
"rust-lang.rust-analyzer"
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb",
"usernamehw.errorlens",
"gruntfuggly.todo-tree"
]
}
11 changes: 10 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"editor.tabSize": 4
"editor.tabSize": 4,
"errorLens.enabled": true,
"errorLens.gutterIconsEnabled": true,
"errorLens.gutterIconSet": "squareRounded",
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)|todo!|unimplemented!",
"rust-analyzer.check.command": "clippy",
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true,
},
}

0 comments on commit 3ef200f

Please sign in to comment.