Skip to content

Commit

Permalink
Add wasm testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiazya committed Jul 27, 2024
1 parent 06708af commit 99880b8
Show file tree
Hide file tree
Showing 6 changed files with 410 additions and 319 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/.dynamic-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ jobs:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- run: pnpm test run

test_wasm_nodejs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup
uses: ./.github/actions/setup
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- working-directory: web-csv-toolbox-wasm
run: wasm-pack test --node

test_deno:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,6 +109,8 @@ jobs:
skip-rust-setup: 'true'
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- run: npm test run -- --browser.name=${{ matrix.browsers }} --browser.headless
- working-directory: web-csv-toolbox-wasm
run: wasm-pack test --headless --${{ matrix.browsers }}

test_macos_browser:
runs-on: macos-latest
Expand All @@ -119,6 +135,8 @@ jobs:
# run: sudo safaridriver --enable
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- run: pnpm test run -- --browser.name=${{ matrix.browsers }} --browser.headless
- working-directory: web-csv-toolbox-wasm
run: wasm-pack test --headless --${{ matrix.browsers }}


test_windows_browser:
Expand All @@ -138,3 +156,6 @@ jobs:
skip-rust-setup: 'true'
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
- run: pnpm test run -- --browser.name=${{ matrix.browsers }} --browser.headless
- if: ${{ matrix.browsers != 'edge' }}
working-directory: web-csv-toolbox-wasm
run: wasm-pack test --headless --${{ matrix.browsers }}
Loading

0 comments on commit 99880b8

Please sign in to comment.