Skip to content

Merge pull request #77 from hjmjohnson/update-to-v5.4.6 #117

Merge pull request #77 from hjmjohnson/update-to-v5.4.6

Merge pull request #77 from hjmjohnson/update-to-v5.4.6 #117

Workflow file for this run

name: WebAssembly
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
jobs:
build-wasm:
name: "build-test-wasm"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Test WASI
run: |
npm run test:wasi
- name: Build TypeScript, JavaScript package
run: |
cd wasm/typescript
npm install
npm run build
- name: Test Node.js interface
run: |
cd wasm/typescript
npm run test:node
- name: Test Browser interface, Chrome
uses: cypress-io/github-action@v6
with:
working-directory: ./wasm/typescript
browser: chrome
start: npm start
- name: Test Browser interface, Firefox
uses: cypress-io/github-action@v6
with:
working-directory: ./wasm/typescript
browser: firefox
start: npm start
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: wasm/typescript/cypress/screenshots
- uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos
path: wasm/typescript/cypress/videos