Skip to content

Commit

Permalink
Add GitHub Actions integration (#11)
Browse files Browse the repository at this point in the history
* Add GitHub Actions integration

* Update CHANGES.md

* Update CI.yml

* Update CI.yml
  • Loading branch information
mosuka authored Oct 8, 2020
1 parent 821df1c commit 47bfc28
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 7 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is the list of authors of tantivy for copyright purposes.
Minoru Osuka
@ken0x0a
Jun Ohtani
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
[package]
name = "lindera-tantivy"
version = "0.2.0"
authors = ["Minoru Osuka <[email protected]>"]
authors = [
"Minoru Osuka <[email protected]>",
"@ken0x0a",
"Jun Ohtani <[email protected]>"
]
edition = "2018"
description = "A Tokenizer for Tantivy, based on Lindera."
documentation = "https://docs.rs/lindera-tantivy"
Expand All @@ -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"
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47bfc28

Please sign in to comment.