From 8fc20a2229fa3d5322e838f9bb0eec817d56fada Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Tue, 19 Aug 2025 08:21:13 +0200 Subject: ci: fmt (#12) --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c0e4335..c13f63e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,16 +31,33 @@ jobs: uses: arduino/setup-protoc@v3 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Check - run: > - cargo clippy --workspace --all-features --all-targets --message-format=json - | clippy-sarif - | tee clippy-results.sarif - | sarif-fmt - - name: Upload + - name: Run rust-clippy + run: + cargo clippy + --workspace + --all-features + --message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt + continue-on-error: true + - name: Upload analysis results to GitHub uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: clippy-results.sarif + sarif_file: rust-clippy-results.sarif + wait-for-processing: true + + + fmt: + runs-on: ubuntu-latest + name: stable / fmt + steps: + - uses: actions/checkout@v5 + with: + submodules: true + - name: Install stable + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: cargo fmt --check + run: cargo fmt --check os-check: runs-on: ${{ matrix.os }} -- cgit v1.2.3