add cargo fmt + cargo clippy to rust workflow

This commit is contained in:
Ferdinand Schober
2023-12-18 21:27:53 +01:00
parent 9f23e1a75d
commit 4600db7af8
6 changed files with 29 additions and 11 deletions

View File

@@ -25,6 +25,10 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check Formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-features --all-targets -- --deny warnings
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
@@ -41,6 +45,10 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check Formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-features --all-targets -- --deny warnings
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
@@ -57,6 +65,10 @@ jobs:
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Check Formatting
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-features --all-targets -- --deny warnings
- name: Upload build artifact
uses: actions/upload-artifact@v3
with: