-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from UMEssen/dev/2024-12-11-cleanup
December Cleanup
- Loading branch information
Showing
20 changed files
with
692 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: rust-checks | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
check-rust-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
components: clippy,rustfmt | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- run: cargo install clippy-sarif sarif-fmt | ||
- name: Print versions | ||
run: | | ||
rustc --version | ||
cargo fmt --version | ||
cargo clippy --version | ||
- name: cargo check | ||
run: cargo check | ||
|
||
- name: cargo test | ||
run: cargo test | ||
|
||
- name: cargo fmt | ||
run: cargo fmt --all -- --check | ||
|
||
- name: cargo clippy | ||
run: cargo clippy --all-targets --all-features --message-format=json | clippy-sarif | tee results.sarif | sarif-fmt | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v1 | ||
with: | ||
sarif_file: results.sarif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
hard_tabs = true | ||
wrap_comments = true | ||
hard_tabs = true |
Oops, something went wrong.