From 489f0c70f1f8a780af19e99ccfeea01a2297ad14 Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Sun, 26 May 2024 21:50:23 +0800 Subject: [PATCH] chore: ci --- .github/workflows/ci.yml | 7 +++++++ Cargo.toml | 5 +++-- viz-core/tests/handler.rs | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 653de509..9494aafa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,13 +6,20 @@ on: branches: - main - '[0-9]+.[0-9]+.x' + schedule: + - cron: '0 2 * * *' + workflow_dispatch: env: CARGO_INCREMENTAL: 0 + CARGO_NET_GIT_FETCH_WITH_CLI: true CARGO_NET_RETRY: 10 CARGO_TERM_COLOR: always + CARGO_PROFILE_TEST_BUILD_OVERRIDE_DEBUG: true RUST_BACKTRACE: 1 RUSTUP_MAX_RETRIES: 10 + RUSTFLAGS: -D warnings + RUSTDOCFLAGS: -D warnings jobs: test: diff --git a/Cargo.toml b/Cargo.toml index ccf6d12b..7b36e306 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -149,10 +149,11 @@ missing_debug_implementations = "warn" missing_docs = "warn" [workspace.lints.clippy] -all = "deny" -pedantic = "deny" +all = "warn" +pedantic = "warn" missing_errors_doc = "warn" needless_pass_by_value = "warn" module_name_repetitions = { level = "allow", priority = 1 } too_many_lines = { level = "allow", priority = 1 } type_complexity = { level = "allow", priority = 1 } +lint_groups_priority = { level = "allow", priority = 1 } # https://github.com/rust-lang/rust-clippy/issues/12270 diff --git a/viz-core/tests/handler.rs b/viz-core/tests/handler.rs index ff776b40..bf2640e1 100644 --- a/viz-core/tests/handler.rs +++ b/viz-core/tests/handler.rs @@ -1,4 +1,5 @@ #![allow(dead_code)] +#![allow(non_local_definitions)] #![allow(clippy::unused_async)] #![allow(clippy::similar_names)] #![allow(clippy::wildcard_imports)]