chore: crates.io publish metadata + CI matrix (fmt/clippy on linux, cargo test on linux+windows)

This commit is contained in:
loki5512344 2026-09-15 16:10:17 +02:00
parent 81d442b5b1
commit 8a9a384365
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 40 additions and 0 deletions

34
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
core.autocrlf: input
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# core.autocrlf=input keeps the working tree LF on every OS: the
# span/byte-offset tests and the git rename assertions compare exact
# fixture bytes.
- uses: actions/checkout@v4
with:
core.autocrlf: input
- run: cargo test --locked

View file

@ -2,6 +2,12 @@
name = "jmove"
version = "0.1.0"
edition = "2024"
description = "Project-aware file mover and import fixer for TypeScript/JavaScript and Java: rewrites every import, applies atomically, dry-run + JSON for AI agents."
license = "GPL-3.0-or-later"
repository = "https://github.com/loki5512344/jmove"
readme = "README.md"
keywords = ["refactoring", "imports", "java", "typescript", "rename"]
categories = ["development-tools", "command-line-utilities"]
[dependencies]
anyhow = "1.0.104"