From ce64e986bd78df88c00efe9831e31fec5b1a34be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natalie=20Klestrup=20R=C3=B6ijezon?= Date: Wed, 4 Dec 2024 14:53:13 +0100 Subject: [PATCH] Pin tarpaulin on Rust 1.82 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #1657 Signed-off-by: Natalie Klestrup Röijezon --- .github/workflows/coverage.yml | 12 +++++++----- justfile | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 66107eb14..89d29ba61 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -6,9 +6,9 @@ on: - main pull_request: paths: - - '**.rs' - - '**.toml' - - '**.yml' + - "**.rs" + - "**.toml" + - "**.yml" jobs: tarpaulin-codecov: @@ -17,7 +17,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install stable toolchain - uses: dtolnay/rust-toolchain@stable + # tarpaulin is currently broken for Rust 1.83, see #1657 + uses: dtolnay/rust-toolchain@1.82.0 - uses: Swatinem/rust-cache@v2 - name: Install tarpaulin uses: taiki-e/install-action@v2 @@ -35,7 +36,8 @@ jobs: - name: Run cargo-tarpaulin run: | - rustup run stable cargo tarpaulin -o xml --skip-clean + # tarpaulin is currently broken for Rust 1.83, see #1657 + rustup run 1.82.0 cargo tarpaulin -o xml --skip-clean - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5 with: diff --git a/justfile b/justfile index 3ba5c4d14..9fe9a393b 100644 --- a/justfile +++ b/justfile @@ -46,7 +46,8 @@ test-integration: cargo run -p kube-examples --example crd_api coverage: - cargo tarpaulin --out=Html --output-dir=. + # tarpaulin is currently broken for Rust 1.83, see #1657 + cargo +1.82.0 tarpaulin --out=Html --output-dir=. {{open}} tarpaulin-report.html hack: