Skip to content

COMP: Bump actions/setup-node from 3.6.0 to 3.8.1 #74

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

COMP: Bump actions/setup-node from 3.6.0 to 3.8.1 #74

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@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
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