Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run lunr-fixture-gen #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true

- name: Install node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: tests/lunr-fixture-gen/package-lock.json

- name: Run lunr-fixture-gen
run: |
cd tests/lunr-fixture-gen
npm install
npm run build

- name: Check that the fixtures haven't changed
run: |
git diff --exit-code tests/lunr-fixture-gen

- name: Build (all features)
uses: actions-rs/cargo@v1
with:
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch lunr-fixture-gen",
"skipFiles": [
"<node_internals>/**"
],
"program": "index.js",
"cwd": "${workspaceFolder}/tests/lunr-fixture-gen",
}
]
}
5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name = "bench"
harness = false

[dev-dependencies]
criterion = "0.4.0"
criterion = "0.5.0"
maplit = "1"

[dependencies]
Expand All @@ -37,8 +37,7 @@ lindera = { version = "0.14", optional = true, features = ["ipadic"] }
lindera-core = { version = "0.13.5", optional = true }

[features]
languages = ["ar", "da", "de", "du", "es", "fi", "fr", "hu", "it", "ja", "ko", "no", "pt", "ro", "ru", "sv", "tr", "zh"]
ar = []
languages = ["da", "de", "du", "es", "fi", "fr", "hu", "it", "ja", "ko", "no", "pt", "ro", "ru", "sv", "tr", "zh"]
da = ["rust-stemmers"]
de = ["rust-stemmers"]
du = ["rust-stemmers"]
Expand Down
95 changes: 0 additions & 95 deletions js/lunr.ar.js

This file was deleted.

66 changes: 0 additions & 66 deletions src/lang/ar.rs

This file was deleted.

7 changes: 0 additions & 7 deletions tests/data/ar.in.txt

This file was deleted.

118 changes: 0 additions & 118 deletions tests/data/ar.out.txt

This file was deleted.

Loading
Loading