-
Notifications
You must be signed in to change notification settings - Fork 62
44 lines (43 loc) · 2.21 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
unit-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --features=search -- --skip src/lib.rs
if: ${{ matrix.os != 'windows-latest' }}
- run: cargo test --features=search -- --skip src\lib.rs
if: ${{ matrix.os == 'windows-latest' }}
- run: cargo test --no-default-features --features=ratatui-crossterm,search -- --skip .rs
- run: cargo test --no-default-features --features=your-backend,search -- --skip .rs
- run: cargo test --no-default-features --features=ratatui-your-backend,search -- --skip .rs
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy,rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy --examples -- -D warnings
- run: cargo clippy --examples --features search -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-crossterm -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-crossterm,search -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-termion -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-termion,search -- -D warnings
- run: cargo clippy --examples --no-default-features --features termion -- -D warnings
- run: cargo clippy --examples --no-default-features --features termion,search -- -D warnings
- run: cargo clippy --examples --no-default-features --features your-backend -- -D warnings
- run: cargo clippy --examples --no-default-features --features your-backend,search -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-your-backend -- -D warnings
- run: cargo clippy --examples --no-default-features --features ratatui-your-backend,search -- -D warnings