Skip to content

COMP: Bump actions/setup-node from 3.6.0 to 3.8.0 #73

COMP: Bump actions/setup-node from 3.6.0 to 3.8.0

COMP: Bump actions/setup-node from 3.6.0 to 3.8.0 #73

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-22.04
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # v3.8.0
with:
node-version: '18'
- 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@v5
with:
working-directory: ./wasm/typescript
browser: chrome
start: npm start
- name: Test Browser interface, Firefox
uses: cypress-io/github-action@v5
with:
working-directory: ./wasm/typescript
browser: firefox
start: npm start
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: wasm/typescript/cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: wasm/typescript/cypress/videos