telnet_wrapper 0.1.0

A telnet server that wraps terminal applications, exposing them to telnet clients with proper protocol support including window size negotiation (NAWS)
name: Rust

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: Build & Clippy
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt

      - name: Cache cargo
        uses: Swatinem/rust-cache@v2

      - name: Run tests
        run: cargo test --all --all-features

      - name: Run clippy
        run: |
          cargo clippy --all --all-features -- \
            -D warnings
      - name: Check formatting
        run: cargo fmt --all -- --check