Skip to content

chore: Set up emsdk on GitHub Actions for CI #261

chore: Set up emsdk on GitHub Actions for CI

chore: Set up emsdk on GitHub Actions for CI #261

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: mymindstorm/setup-emsdk@v14
- name: Use emsdk
run: emcc -v
- run: npm install
- run: npm run lint
- run: npm run type
- run: npm run build
- run: npm test
env:
CI: true