chore: Convert from setup.py to pyproject.toml #81
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: 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@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.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 |