Skip to content

Commit

Permalink
Merge pull request #23 from UMEssen/dev/2024-12-11-cleanup
Browse files Browse the repository at this point in the history
December Cleanup
  • Loading branch information
nickamzol authored Dec 12, 2024
2 parents b071f97 + 9c00459 commit 6837f13
Show file tree
Hide file tree
Showing 20 changed files with 692 additions and 458 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
env:
INSTANCE: 'docs/drst'
ARTIFACT: 'webHelpDRST2-all.zip'
DOCKER_VERSION: '241.16003'
DOCKER_VERSION: '243.21565'

jobs:
build:
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/rust-checks.yml
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
3 changes: 1 addition & 2 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
hard_tabs = true
wrap_comments = true
hard_tabs = true
Loading

0 comments on commit 6837f13

Please sign in to comment.