Skip to content

Fix more clippy warnings #43

Fix more clippy warnings

Fix more clippy warnings #43

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/.dylint_drivers
target/
key: ${{ runner.os }}-bevy_lint-${{ hashFiles('**/Cargo.toml') }}
# - name: Install alsa and udev
# run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Install dylint
run: cargo install dylint-link
if: steps.cache.outputs.cache-hit != 'true'
- name: Check Format
run: cargo fmt --all -- --check
- name: Check Clippy
run: cargo clippy --all-targets --all-features -- -D warnings -A clippy::type_complexity
- name: Run Tests
run: cargo test
- name: Run Examples
run: for entry in $(grep 'name' Cargo.toml | grep -v bevy_lint | sed 's/name = //g' | sed 's/"//g'); do cargo run --example $entry; done
- name: Run Doc Tests
run: sed -i 's/cdylib/lib/g' Cargo.toml; cargo test --doc