Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading