diff --git a/.cargo/config.toml b/.cargo/config.toml index 50d3239..6f153e6 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -99,6 +99,12 @@ debug-assertions = false overflow-checks = false incremental = false +# ============================================================================= +# Compiler Warnings Configuration +# ============================================================================= +# Treat compiler warnings as errors in CI to prevent warnings in the codebase +# Set RUSTFLAGS="-D warnings" in CI to enable + # ============================================================================= # Test Coverage Configuration # ============================================================================= diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index cc74c72..7ff7d7f 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -47,6 +47,7 @@ env: CARGO_INCREMENTAL: 0 CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 + RUSTFLAGS: "-D warnings" COVERAGE_MINIMUM_LINE_COVERAGE: 95 COVERAGE_MINIMUM_BRANCH_COVERAGE: 90 COVERAGE_MINIMUM_FUNCTION_COVERAGE: 100 diff --git a/.github/workflows/cross-browser-tests.yml b/.github/workflows/cross-browser-tests.yml index ec4eed2..9600fec 100644 --- a/.github/workflows/cross-browser-tests.yml +++ b/.github/workflows/cross-browser-tests.yml @@ -38,6 +38,7 @@ on: env: NODE_VERSION: '20' RUST_VERSION: 'stable' + RUSTFLAGS: "-D warnings" jobs: cross-browser-tests: diff --git a/.github/workflows/demo-deploy.yml b/.github/workflows/demo-deploy.yml index ef0ef8d..aeb58ca 100644 --- a/.github/workflows/demo-deploy.yml +++ b/.github/workflows/demo-deploy.yml @@ -21,6 +21,7 @@ env: RUST_VERSION: 'stable' NODE_VERSION: '18' WASM_PACK_VERSION: '0.12.1' + RUSTFLAGS: "-D warnings" jobs: # Job 1: Build and Test the Demo diff --git a/.github/workflows/test-radio-group.yml b/.github/workflows/test-radio-group.yml index db0db22..6257b74 100644 --- a/.github/workflows/test-radio-group.yml +++ b/.github/workflows/test-radio-group.yml @@ -18,6 +18,9 @@ on: - 'tests/radio_group_integration_test.rs' - 'scripts/test_radio_group.sh' +env: + RUSTFLAGS: "-D warnings" + jobs: test-radio-group: name: RadioGroup Component Tests diff --git a/.github/workflows/test-tooltip.yml b/.github/workflows/test-tooltip.yml index 8976054..b59633e 100644 --- a/.github/workflows/test-tooltip.yml +++ b/.github/workflows/test-tooltip.yml @@ -19,6 +19,7 @@ on: env: CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 + RUSTFLAGS: "-D warnings" jobs: test-tooltip: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index d652f5c..20cc0ac 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -12,6 +12,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false +env: + RUSTFLAGS: "-D warnings" + jobs: book-test: name: Test Book