fix: export type to comply with isolatedModules requirements #66
Workflow file for this run
This file contains 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
name: test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
jobs: | |
headless_browser_test: | |
name: Run Rust tests on headless browser | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jetli/wasm-pack-action@v0.3.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'latest' | |
- run: yarn test:browser | |
js_test: | |
name: Run JS tests in NodeJS environment | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: jetli/wasm-pack-action@v0.3.0 | |
with: | |
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest') | |
version: 'latest' | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install --frozen-lockfile | |
- run: yarn build:release | |
- run: yarn test:wasm |