mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 20:53:19 +00:00
77 lines
2 KiB
YAML
77 lines
2 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- feat-wrapping
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- feat-wrapping
|
|
merge_group:
|
|
|
|
|
|
name: CI
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
toolchain: [ "1.65.0", "stable" ]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ matrix.toolchain }}
|
|
components: rustfmt,clippy
|
|
- name: Install cargo-binstall
|
|
uses: taiki-e/install-action@cargo-binstall
|
|
- name: Install cargo-make
|
|
run: |
|
|
cargo binstall -y cargo-make
|
|
cargo make --version
|
|
cargo make --list-all-steps
|
|
- name: "Format / Build / Test"
|
|
run: cargo make ci
|
|
env:
|
|
RUST_BACKTRACE: full
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
if: github.event_name != 'pull_request'
|
|
uses: actions/checkout@v3
|
|
- name: Checkout
|
|
if: github.event_name == 'pull_request'
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: "Check conventional commits"
|
|
uses: crate-ci/committed@master
|
|
with:
|
|
args: "-vv"
|
|
commits: "HEAD"
|
|
- name: "Check typos"
|
|
uses: crate-ci/typos@master
|
|
- name: "Lint dependencies"
|
|
uses: EmbarkStudios/cargo-deny-action@v1
|
|
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: llvm-tools
|
|
- name: cargo install cargo-llvm-cov
|
|
uses: taiki-e/install-action@cargo-llvm-cov
|
|
- name: cargo llvm-cov
|
|
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
|
|
- name: Upload to codecov.io
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
fail_ci_if_error: true
|