Skip to content

Commit

Permalink
Run tests for both ICU = true/false
Browse files Browse the repository at this point in the history
  • Loading branch information
SiarheiFedartsou committed Feb 2, 2025
1 parent f93d284 commit b1bc083
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
node-version: [16.x, 18.x]
es-version: [7.6.1]
jdk-version: [oraclejdk11]
icuTokenizer: [true, false]
steps:
- uses: actions/checkout@v2
- name: Install node.js ${{ matrix.node-version }}
Expand All @@ -23,6 +24,10 @@ jobs:
run: ./scripts/setup_ci.sh
- name: Run integration tests
run: |
if [ "${{ matrix.icuTokenizer }}" = "true" ]; then
jq -n '{ schema: { icuTokenizer: true } }' > $(pwd)/config-icu.json
export PELIAS_CONFIG=$(pwd)/config-icu.json
fi
npm install
curl http://127.0.0.1:9200/
./bin/create_index
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@ jobs:
os:
- ${{ vars.UBUNTU_VERSION }}
node-version: [16.x, 18.x]
icuTokenizer: [true, false]
steps:
- uses: actions/checkout@v2
- name: Install node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run unit tests
run: |
npm install
if [ "${{ matrix.icuTokenizer }}" = "true" ]; then
jq -n '{ schema: { icuTokenizer: true } }' > $(pwd)/config-icu.json
export PELIAS_CONFIG=$(pwd)/config-icu.json
fi
npm run test
- name: Run unit tests with icuTokenizer = true
run: |
jq -n '{ schema: { icuTokenizer: true } }' > $(pwd)/config-icu.json
export PELIAS_CONFIG=$(pwd)/config-icu.json
npm run test
rm $(pwd)/config-icu.json

0 comments on commit b1bc083

Please sign in to comment.