lines-cli 0.3.17

Counts lines of code, fast.
name: ci

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

env:
  RUST_VERSION: "1.93.0"

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 1

      - name: Set up Rust
        uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ env.RUST_VERSION }}
          components: clippy, rustfmt

      - name: Run cargo fmt
        run: cargo fmt --all -- --check

      - name: Run cargo clippy
        run: cargo clippy -- -D warnings

      - name: Run cargo test
        run: cargo test

      - name: Run cargo build
        run: cargo build