mirror of
https://github.com/ratatui/ratatui.git
synced 2025-12-29 21:01:16 +00:00
Bumps [bnjbvr/cargo-machete](https://github.com/bnjbvr/cargo-machete) from 0.6.2 to 0.7.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bnjbvr/cargo-machete/releases">bnjbvr/cargo-machete's releases</a>.</em></p> <blockquote> <h2>v0.7.0</h2> <ul> <li>Breaking change: Don't search in ignored files (those specified in .ignore/.gitignore) by default. It's possible to use <code>--no-ignore</code> to search in these directories by default (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/137">#137</a>).</li> <li>Improved: fix false positives for multi dependencies single use statements (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/120">#120</a>). This improves precision at the cost of a small performance hit.</li> <li>Improved: make usage of <code>--with-metadata</code> more accurate (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/122">#122</a>, <a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/132">#132</a>).</li> <li>Improved: instead of displaying <code>.</code> for the current directory, <code>cargo-machete</code> will now display <code>this directory</code> (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/109">#109</a>).</li> <li>Added: There's now an automated docker image build that publishes to the <a href="https://github.com/bnjbvr/cargo-machete/pkgs/container/cargo-machete">github repository</a> (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/121">#121</a>).</li> <li>Added: <code>--ignore</code> flag which make cargo-machete respect .ignore and .gitignore files when searching for files (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/95">#95</a>).</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bnjbvr/cargo-machete/blob/main/CHANGELOG.md">bnjbvr/cargo-machete's changelog</a>.</em></p> <blockquote> <h1>0.7.0 (released on 2024-09-25)</h1> <ul> <li>Breaking change: Don't search in ignored files (those specified in .ignore/.gitignore) by default. It's possible to use <code>--no-ignore</code> to search in these directories by default (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/137">#137</a>).</li> <li>Improved: fix false positives for multi dependencies single use statements (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/120">#120</a>). This improves precision at the cost of a small performance hit.</li> <li>Improved: make usage of <code>--with-metadata</code> more accurate (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/122">#122</a>, <a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/132">#132</a>).</li> <li>Improved: instead of displaying <code>.</code> for the current directory, <code>cargo-machete</code> will now display <code>this directory</code> (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/109">#109</a>).</li> <li>Added: There's now an automated docker image build that publishes to the <a href="https://github.com/bnjbvr/cargo-machete/pkgs/container/cargo-machete">github repository</a> (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/121">#121</a>).</li> <li>Added: <code>--ignore</code> flag which make cargo-machete respect .ignore and .gitignore files when searching for files (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/95">#95</a>).</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="5eaad10acf"><code>5eaad10</code></a> ci: update OS versions in release task</li> <li><a href="a881c7261d"><code>a881c72</code></a> Update CHANGELOG.md: address typo (thanks <a href="https://github.com/signez"><code>@signez</code></a>)</li> <li><a href="37beb07f34"><code>37beb07</code></a> Release 0.7.0</li> <li><a href="ad0fea4b0b"><code>ad0fea4</code></a> bump dependencies</li> <li><a href="426119c8f0"><code>426119c</code></a> Fix typo.</li> <li><a href="a14e71ad3d"><code>a14e71a</code></a> Don't search in ignored files by default</li> <li><a href="a767940ee9"><code>a767940</code></a> Fix false positive for multi dep single use statements (<a href="https://redirect.github.com/bnjbvr/cargo-machete/issues/120">#120</a>)</li> <li><a href="16e3e931d0"><code>16e3e93</code></a> move regex-try to its own repository</li> <li><a href="bea9e7361a"><code>bea9e73</code></a> nump dependencies</li> <li><a href="94a21474d2"><code>94a2147</code></a> remove unnecessary clones, and some minor changes</li> <li>Additional commits viewable in <a href="https://github.com/bnjbvr/cargo-machete/compare/v0.6.2...v0.7.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
161 lines
4.5 KiB
YAML
161 lines
4.5 KiB
YAML
name: Continuous Integration
|
|
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
merge_group:
|
|
|
|
# ensure that the workflow is only triggered once per PR, subsequent pushes to the PR will cancel
|
|
# and restart the workflow. See https://docs.github.com/en/actions/using-jobs/using-concurrency
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
# lint, clippy and coverage jobs are intentionally early in the workflow to catch simple formatting,
|
|
# typos, and missing tests as early as possible. This allows us to fix these and resubmit the PR
|
|
# without having to wait for the comprehensive matrix of tests to complete.
|
|
jobs:
|
|
rustfmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with:
|
|
components: rustfmt
|
|
- run: cargo +nightly fmt --all --check
|
|
|
|
typos:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: crate-ci/typos@master
|
|
|
|
dependencies:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: EmbarkStudios/cargo-deny-action@v2
|
|
|
|
cargo-machete:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: bnjbvr/cargo-machete@v0.7.0
|
|
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy
|
|
- uses: taiki-e/install-action@cargo-make
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo make clippy
|
|
|
|
markdownlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DavidAnson/markdownlint-cli2-action@v17
|
|
with:
|
|
globs: |
|
|
'**/*.md'
|
|
'!target'
|
|
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: llvm-tools
|
|
- uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-llvm-cov,cargo-make
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo make coverage
|
|
- uses: codecov/codecov-action@v4
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
fail_ci_if_error: true
|
|
|
|
check:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
toolchain: ["1.74.0", "stable"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
- uses: taiki-e/install-action@cargo-make
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo make check
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
|
|
lint-docs:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
RUSTDOCFLAGS: -Dwarnings
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
- uses: dtolnay/install@cargo-docs-rs
|
|
- uses: Swatinem/rust-cache@v2
|
|
# Run cargo rustdoc with the same options that would be used by docs.rs, taking into account
|
|
# the package.metadata.docs.rs configured in Cargo.toml.
|
|
# https://github.com/dtolnay/cargo-docs-rs
|
|
- run: cargo +nightly docs-rs
|
|
|
|
test-doc:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: taiki-e/install-action@cargo-make
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo make test-doc
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
toolchain: ["1.74.0", "stable"]
|
|
backend: [crossterm, termion, termwiz]
|
|
exclude:
|
|
# termion is not supported on windows
|
|
- os: windows-latest
|
|
backend: termion
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
- uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: cargo-make,nextest
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo make test-backend ${{ matrix.backend }}
|
|
env:
|
|
RUST_BACKTRACE: full
|