Skip to content

refactor(tui): remove dead code and apply rustfmt #41

refactor(tui): remove dead code and apply rustfmt

refactor(tui): remove dead code and apply rustfmt #41

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
run_tests: true
- os: windows-latest
target: x86_64-pc-windows-msvc
run_tests: true
runs-on: ${{ matrix.os }}
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install Rust nightly
run: |
rustup toolchain install nightly --profile minimal
rustup default nightly
rustup target add ${{ matrix.target }}
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --target ${{ matrix.target }}
- name: Run tests
if: matrix.run_tests
timeout-minutes: 2
run: cargo test --target ${{ matrix.target }}
- name: Clippy
run: cargo clippy --target ${{ matrix.target }} -- -D warnings
continue-on-error: true
- name: Format check
if: matrix.os == 'ubuntu-latest'
run: |
rustup component add rustfmt
cargo fmt --check