Skip to content

Commit

Permalink
fix(self_update): show --version param
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 2, 2024
1 parent e5368f7 commit e0d4a1a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .mise/tasks/test/coverage
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash
# mise depends=["build"]
# mise description="run all tests with coverage report"

echo "::group::Setup"
Expand All @@ -25,7 +24,14 @@ if [[ "${TEST_TRANCHE:-}" == 0 ]]; then
mise implode
elif [[ "${TEST_TRANCHE:-}" == 1 ]]; then
echo "::group::Self update"
mise self-update -fy
# pick a version from the previous month because the current release might not have been published yet
y=$(date +%Y)
m=$(($(date +%m) - 1))
if [[ $m -eq 0 ]]; then
m=12
y=$((y - 1))
fi
mise self-update -fy --version "$y.$m.0"
fi
echo "::group::Render lcov report"
cargo llvm-cov report --lcov --output-path lcov.info

0 comments on commit e0d4a1a

Please sign in to comment.