diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..7299ef9 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,53 @@ +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize] + +name: CI + +jobs: + check: + name: Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: check + + test: + name: Test Suite + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check diff --git a/AUTHORS b/AUTHORS index fb52122..80b6296 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,4 @@ # This is the list of authors of tantivy for copyright purposes. Minoru Osuka @ken0x0a +Jun Ohtani diff --git a/CHANGES.md b/CHANGES.md index 0bf2502..f9674b5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## Unreleased - +- Add GitHub Actions integration #11 mosuka - Upgrade lindera 0.6.0 and tantivy 0.13.2 @johtani ## 0.2.0 (2020-08-25) diff --git a/Cargo.toml b/Cargo.toml index 420ac49..d9fc0db 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,11 @@ [package] name = "lindera-tantivy" version = "0.2.0" -authors = ["Minoru Osuka "] +authors = [ + "Minoru Osuka ", + "@ken0x0a", + "Jun Ohtani " +] edition = "2018" description = "A Tokenizer for Tantivy, based on Lindera." documentation = "https://docs.rs/lindera-tantivy" @@ -13,6 +17,7 @@ categories = ["text-processing"] license = "MIT" [dependencies] -lindera = "0.6.0" -lindera-core = "0.6.0" -tantivy = "0.13.2" +tantivy = "0.13" + +lindera = "0.6" +lindera-core = "0.6" diff --git a/README.md b/README.md index 1884f20..54fb89f 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,9 @@ A Tokenizer for [Tantivy](https://github.com/tantivy-search/tantivy), based on [ The following products are required to build: - Rust >= 1.46.0 -- make >= 3.81 ```text -% make build +% cargo build ``` ## Usage