Skip to content

Commit

Permalink
Add CI workflow to run smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Dec 3, 2024
1 parent 8bc6bd0 commit f5cba36
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: npm install
- run: cargo install wasm-pack --version 0.13.1
- run: make bindgen
- run: make build
- run: npm test
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"url": "git+https://github.com/kateinoigakukun/wasm-memprof.git"
},
"type": "module",
"scripts": {
"test": "node ./test/smoke.test.js"
},
"exports": {
".": {
"module": "./dist/wasm-memprof.js",
Expand Down

0 comments on commit f5cba36

Please sign in to comment.