aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yaml33
1 files changed, 25 insertions, 8 deletions
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 }}