kanpyo 0.2.0

Japanese Morphological Analyzer
Documentation
name: Rust CI

on:
  push:
    branches:
      - "main"
  pull_request:
    branches:
      - "main"

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: "-Dwarnings"

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6

      - name: Cache cargo registry
        uses: actions/cache@v5
        with:
          path: |
            ~/.cargo/bin/
            ~/.cargo/registry/index/
            ~/.cargo/registry/cache/
            ~/.cargo/git/db/
            target/
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
      - name: Build test
        run: cargo build --release --verbose --all
      - name: Run tests
        run: cargo test --verbose --all
      - name: Lint with clippy
        run: cargo clippy --all-targets --all-features --all
      - name: Check formatting
        run: cargo fmt --check --all