From 9f24c50640d59348818e43d030e3a49b265e9447 Mon Sep 17 00:00:00 2001 From: Alisue Date: Sat, 20 Apr 2024 15:05:28 +0900 Subject: [PATCH] Add CI tests for `use-gauge-on-cpu-seconds-total` feature --- .github/workflows/build.yml | 3 +++ .github/workflows/test.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8333cd6..85eb9cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,6 +34,9 @@ jobs: - name: Test run: | cargo build --release --all-features + - name: Test (use-gauge-on-cpu-seconds-total) + run: | + cargo build --release --features use-gauge-on-cpu-seconds-total build-dummy: strategy: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0dfda69..862714a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,6 +59,9 @@ jobs: - name: Clippy check run: | cargo clippy --all-features --all-targets + - name: Clippy check (use-gauge-on-cpu-seconds-total) + run: | + cargo clippy --features use-gauge-on-cpu-seconds-total --all-targets test: strategy: @@ -91,6 +94,9 @@ jobs: - name: Test run: | cargo llvm-cov --all-features --lcov --output-path lcov.info + - name: Test (use-gauge-on-cpu-seconds-total) + run: | + cargo llvm-cov --features use-gauge-on-cpu-seconds-total --lcov --output-path lcov.info - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: