Skip to content

feat(js): Add wasm export path and improve bundler compatibility #10

feat(js): Add wasm export path and improve bundler compatibility

feat(js): Add wasm export path and improve bundler compatibility #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags-ignore: ['**']
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'LICENSE'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- run: yarn install --immutable
- run: yarn lint
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Build native and compile dictionaries
run: |
cmake -B build -DBUILD_WASM=OFF -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage" -DCMAKE_C_FLAGS="--coverage"
cmake --build build --parallel
cmake --build build --target build-dict
- name: Run C++ tests
run: ctest --test-dir build --output-on-failure
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
gcov: true
- run: yarn install --immutable
- run: yarn build
- run: yarn test