diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..94f480d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf \ No newline at end of file diff --git a/.github/workflows/cargo-deny.yml b/.github/workflows/cargo-deny.yml new file mode 100644 index 0000000..85e4602 --- /dev/null +++ b/.github/workflows/cargo-deny.yml @@ -0,0 +1,16 @@ +name: Cargo Deny +on: + pull_request: + paths: + - '**/Cargo.lock' + - '**/Cargo.toml' + - '**/deny.toml' + +jobs: + cargo-deny: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: EmbarkStudios/cargo-deny-action@v2 + with: + command: check bans licenses sources \ No newline at end of file diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 40d6c72..c285bb6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,8 +1,6 @@ name: Rust on: - push: - branches: [ "main" ] pull_request: branches: [ "main" ] @@ -20,11 +18,8 @@ jobs: toolchain: 1.85.0 override: true components: clippy - - uses: EmbarkStudios/cargo-deny-action@v2 - name: Clippy run: cargo clippy --all-features --all-targets -- -D warnings - name: Run tests run: cargo test - - name: Deny - run: cargo deny check diff --git a/Cargo.toml b/Cargo.toml index 1d720f7..d7899f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ too_many_lines = "allow" unreadable_literal = "allow" unseparated_literal_suffix = "allow" -# Normal lints that we get often due to Bevy +# Normal are often triggered in bevy type_complexity = "allow" # Restriction lints