mirror of
https://github.com/ratatui/ratatui.git
synced 2025-12-29 21:01:16 +00:00
Bumps [DavidAnson/markdownlint-cli2-action](https://github.com/davidanson/markdownlint-cli2-action) from 18 to 19. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/davidanson/markdownlint-cli2-action/releases">DavidAnson/markdownlint-cli2-action's releases</a>.</em></p> <blockquote> <h2>Update markdownlint version (markdownlint-cli2 v0.17.2, markdownlint v0.37.4).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.17.0, markdownlint v0.37.0).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.15.0, markdownlint v0.36.1).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.14.0, markdownlint v0.35.0).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.13.0, markdownlint v0.34.0).</h2> <p>No release notes provided.</p> <p>Update markdownlint version (markdownlint-cli2 v0.12.1, markdownlint v0.33.0).</p> <h2>Update markdownlint version (markdownlint-cli2 v0.11.0, markdownlint v0.32.1), remove deprecated "command" input.</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.10.0, markdownlint v0.31.1).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.9.2, markdownlint v0.30.0).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.8.1, markdownlint v0.29.0), add "config" and "fix" inputs, deprecate "command" input.</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.7.1, markdownlint v0.28.2).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.7.0, markdownlint v0.28.1), include link to rule information in title of annotations (clickable in GitHub).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.6.0, markdownlint v0.27.0).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.5.1, markdownlint v0.26.2).</h2> <p>No release notes provided.</p> <h2>Update markdownlint version (markdownlint-cli2 v0.4.0, markdownlint v0.25.1)</h2> <p>No release notes provided.</p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="05f32210e8"><code>05f3221</code></a> Update to version 19.1.0.</li> <li><a href="1d17f9bb81"><code>1d17f9b</code></a> Add tests for custom rules (markdown-it and micromark) with no errors and err...</li> <li><a href="51527aa3e5"><code>51527aa</code></a> Freshen generated index.js file.</li> <li><a href="e537c98f77"><code>e537c98</code></a> Bump markdownlint-cli2 from 0.17.1 to 0.17.2</li> <li><a href="c0be6188d6"><code>c0be618</code></a> Bump eslint from 9.17.0 to 9.18.0</li> <li><a href="5ed1ce51e3"><code>5ed1ce5</code></a> Bump <code>@eslint/js</code> from 9.17.0 to 9.18.0</li> <li><a href="502fa0bb7d"><code>502fa0b</code></a> Bump <code>@stylistic/eslint-plugin</code> from 2.12.1 to 2.13.0</li> <li><a href="49e5884463"><code>49e5884</code></a> Freshen generated index.js file.</li> <li><a href="a30a754947"><code>a30a754</code></a> Freshen generated index.js file.</li> <li><a href="a662b8af10"><code>a662b8a</code></a> Bump markdownlint-cli2 from 0.17.0 to 0.17.1</li> <li>Additional commits viewable in <a href="https://github.com/davidanson/markdownlint-cli2-action/compare/v18...v19">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>
191 lines
5.9 KiB
YAML
191 lines
5.9 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
|
|
|
|
# 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:
|
|
# Lint the formatting of the codebase.
|
|
lint-formatting:
|
|
name: Check Formatting
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@nightly
|
|
with: { components: rustfmt }
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: taiki-e/install-action@v2
|
|
with:
|
|
tool: taplo-cli
|
|
- run: cargo xtask format --check
|
|
|
|
# Check for typos in the codebase.
|
|
# See <https://github.com/crate-ci/typos/>
|
|
lint-typos:
|
|
name: Check Typos
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: crate-ci/typos@master
|
|
|
|
# Check for any disallowed dependencies in the codebase due to license / security issues.
|
|
# See <https://github.com/EmbarkStudios/cargo-deny>
|
|
dependencies:
|
|
name: Check Dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: taiki-e/install-action@cargo-deny
|
|
- run: cargo deny --log-level info --all-features check
|
|
|
|
# Check for any unused dependencies in the codebase.
|
|
# See <https://github.com/bnjbvr/cargo-machete/>
|
|
cargo-machete:
|
|
name: Check Unused Dependencies
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: bnjbvr/cargo-machete@v0.7.0
|
|
|
|
# Run cargo clippy.
|
|
lint-clippy:
|
|
name: Check Clippy
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with: { components: clippy }
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo xtask clippy
|
|
|
|
# Run markdownlint on all markdown files in the repository.
|
|
lint-markdown:
|
|
name: Check Markdown
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: DavidAnson/markdownlint-cli2-action@v19
|
|
with:
|
|
globs: |
|
|
'**/*.md'
|
|
'!target'
|
|
|
|
# Run cargo coverage. This will generate a coverage report and upload it to codecov.
|
|
# <https://app.codecov.io/gh/ratatui/ratatui>
|
|
coverage:
|
|
name: Coverage Report
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: llvm-tools
|
|
- uses: taiki-e/install-action@cargo-llvm-cov
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo xtask coverage
|
|
- uses: codecov/codecov-action@v5
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
fail_ci_if_error: true
|
|
|
|
# Run cargo check. This is a fast way to catch any obvious errors in the code.
|
|
check:
|
|
name: Check ${{ matrix.os }} ${{ matrix.toolchain }}
|
|
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: Swatinem/rust-cache@v2
|
|
- run: cargo xtask check --all-features
|
|
|
|
# Check if README.md is up-to-date with the crate's documentation.
|
|
check-readme:
|
|
name: Check README
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: Swatinem/rust-cache@v2
|
|
- uses: taiki-e/install-action@cargo-rdme
|
|
- run: cargo xtask readme --check
|
|
|
|
# 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
|
|
lint-docs:
|
|
name: Check 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 xtask docs
|
|
|
|
# Run cargo test on the documentation of the crate. This will catch any code examples that don't
|
|
# compile, or any other issues in the documentation.
|
|
test-docs:
|
|
name: Test Docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo xtask test-docs
|
|
|
|
# Run cargo test on the libraries of the crate.
|
|
test-libs:
|
|
name: Test Libs ${{ matrix.toolchain }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
toolchain: ["1.74.0", "stable"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo xtask test-libs
|
|
|
|
# Run cargo test on all the backends.
|
|
test-backends:
|
|
name: Test ${{matrix.backend}} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
backend: [crossterm, termion, termwiz]
|
|
exclude:
|
|
# termion is not supported on windows
|
|
- os: windows-latest
|
|
backend: termion
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- run: cargo xtask test-backend ${{ matrix.backend }}
|