Skip to content

Feature/9 improved acquisition process of japanese tokens in contentbasedrecommenderts #6

Feature/9 improved acquisition process of japanese tokens in contentbasedrecommenderts

Feature/9 improved acquisition process of japanese tokens in contentbasedrecommenderts #6

Workflow file for this run

# TypeScript Content Based Recommenderのテストワークフロー
# 複数のNode.jsバージョンでビルドとテストを実行
name: Node.js CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type check
run: npm run tsc
- name: Run linter
run: npm run lint
- name: Build package
run: npm run build
- name: Run tests
run: npm test
# 日本語形態素解析器(kuromoji)の動作確認
japanese-test:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Run Japanese language tests
run: npm test -- --grep "Japanese"
- name: Run example with Japanese documents
run: npm run example