Feature/9 improved acquisition process of japanese tokens in contentbasedrecommenderts #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |