From 437bc453924d044c8ea974d9f5ba94b2f9306ae9 Mon Sep 17 00:00:00 2001 From: Jon Mease Date: Fri, 29 Dec 2023 16:35:57 -0500 Subject: [PATCH] Add check, fmt, clippy checks --- .github/workflows/rust.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 09c3fd9..3e73b91 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,15 +10,24 @@ env: CARGO_TERM_COLOR: always jobs: - build: + check-rs: runs-on: ubuntu-latest + env: + RUSTFLAGS: "-D warnings" steps: - name: Install Protoc uses: arduino/setup-protoc@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Check cargo fmt compliance + run: cargo fmt --all -- --check + - name: Check no rustc warnings + run: cargo check --tests + - name: Check for clippy warnings + run: cargo clippy - uses: actions/checkout@v3 - name: Build run: cargo build --verbose - - name: Run tests - run: cargo test --verbose +# # Tests currently fail with `MakeWgpuAdapterError` +# - name: Run tests +# run: cargo test --verbose