Skip to content

Commit

Permalink
Add check, fmt, clippy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Dec 29, 2023
1 parent 273a34b commit 437bc45
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 437bc45

Please sign in to comment.