mirror of
https://github.com/max-sixty/worktrunk.git
synced 2026-11-24 12:09:59 +08:00
Bumps two drifted CI tool pins to their latest stable releases. cargo-llvm-cov goes from 0.9.1 to 0.9.2 in `coverage.yaml`. worktrunk goes from 0.82.0 to 0.83.0 in `ci.yaml` (two jobs) and the `nightly.yaml` minimum-Git leg. This PR's CI runs the bumped pins on Linux, macOS, and Windows. | Crate | Old | New | `rust-version` | Compatible with 1.99 toolchain | |---|---|---|---|---| | cargo-llvm-cov | 0.9.1 | 0.9.2 | 1.87 | yes | | worktrunk | 0.82.0 | 0.83.0 | 1.99 | yes | The [cargo-llvm-cov 0.9.2 release](https://github.com/taiki-e/cargo-llvm-cov/releases/tag/v0.9.2) adds `@argfile` argument support and drops the `fs-err` dependency; neither changes how this repo invokes it. <details><summary>Other pins checked this week (no drift)</summary> - MSRV and toolchain: current stable is Rust 1.100.0, so stable − 1 is 1.99, which `Cargo.toml`, `tests/helpers/wt-perf/Cargo.toml`, and `rust-toolchain.toml` already use. The `nightly-2026-10-20` pins in `nightly.yaml` are about a month old, under the three-month threshold. - cargo-install pins: cargo-affected 0.4.1 (both copies), cargo-insta 1.49.0, cargo-msrv 0.19.6, cargo-nextest 0.9.152, cargo-udeps 0.1.61, lychee 0.24.2. All match crates.io's latest stable. - `hustcer/setup-nu`: all five sites are on 0.117.0, the latest Nushell release. `.codex/cloud.sh` and `setup-web` match. - pre-commit 4.7.0 and PowerShell 7.7.0 in `.codex/cloud.sh` and `setup-web` are the latest releases. - The Dependabot `typescript` major ignore stays: `@astrojs/check` still declares `^5.0.0 || ^6.0.0`. - Runner images: `ubuntu-24.04` (and `-arm`), `macos-26` (and `-intel`), and `windows-2025` are still what the `-latest` labels resolve to in the runner-images table. </details> Co-authored-by: worktrunk-bot <254187624+worktrunk-bot@users.noreply.github.com>
87 lines
3.0 KiB
YAML
87 lines
3.0 KiB
YAML
name: coverage
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
# Keyed per-commit on main, so a merge train can't cancel a queued upload:
|
|
# GitHub cancels the pending run whenever a newer one joins the group, and
|
|
# codecov picks a PR's base by walking back to the newest ancestor that has a
|
|
# report. A main commit that skips its upload therefore leaves later PRs
|
|
# comparing against a stale base. That's why coverage sits outside `ci`, whose
|
|
# group is shared with jobs that hold a run open for hours. PR runs still
|
|
# supersede their own.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
env:
|
|
# Swatinem/rust-cache hashes CARGO*/RUST* into the cache key, so these track
|
|
# ci.yaml (.github/AGENTS.md → Build environment).
|
|
CARGO_TERM_COLOR: always
|
|
CARGO_INCREMENTAL: 0
|
|
RUSTFLAGS: -C debuginfo=0
|
|
|
|
jobs:
|
|
code-coverage:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: 📂 Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- uses: baptiste0928/cargo-install@v3
|
|
with:
|
|
crate: cargo-llvm-cov
|
|
version: "=0.9.2"
|
|
|
|
- uses: baptiste0928/cargo-install@v3
|
|
with:
|
|
crate: cargo-nextest
|
|
version: "=0.9.152"
|
|
|
|
- name: 💰 Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
# Own cache — coverage-instrumented builds differ from the shared test
|
|
# cache. Already main-gated; cache-bin:false matches everywhere else.
|
|
cache-bin: "false"
|
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
- name: Install shells (zsh, fish)
|
|
run: sudo apt-get update && sudo apt-get install -y zsh fish
|
|
|
|
- name: Install nushell
|
|
uses: hustcer/setup-nu@v3
|
|
with:
|
|
version: '0.117.0'
|
|
|
|
# Ensure nothing remains from caching
|
|
- run: cargo llvm-cov clean --workspace
|
|
|
|
- name: 📊 Generate coverage report
|
|
# Match the regular suite's process isolation. Cargo's in-process runner
|
|
# lets one busy PTY test delay another before it can paint its prompt.
|
|
run: cargo llvm-cov nextest --features shell-integration-tests --cobertura --output-path=cobertura.xml
|
|
|
|
- name: Upload code coverage results
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: code-coverage-report
|
|
path: cobertura.xml
|
|
|
|
- name: Upload to codecov.io
|
|
uses: codecov/codecov-action@v7.1.1
|
|
with:
|
|
use_pypi: true
|
|
version: 11.3.1
|
|
files: cobertura.xml
|
|
# Soft-fail on fork PRs: secrets aren't available there, so we rely on
|
|
# tokenless upload, which can hiccup. Keep hard-fail on the main repo.
|
|
# The head repo is what tells the two apart — `github.repository_owner`
|
|
# is the base repo's owner on a fork PR too.
|
|
fail_ci_if_error: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|