Skip to content

Commit

Permalink
add: app.yaml for js-test-app's integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
dynamite-bud committed Dec 28, 2023
1 parent 914c2c2 commit 6cce15f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test-suite/js-test-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
dist
# dist
dist-ssr
*.local

Expand Down
6 changes: 6 additions & 0 deletions test-suite/js-test-app/dist/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
kind: wasmer.io/App.v0
name: wasmer-tests-winterjs-integration-test-worker
package: wasmer-tests/winterjs-integration-test
cli_args:
- /bundle.js
1 change: 1 addition & 0 deletions test-suite/js-test-app/dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions test-suite/js-test-app/dist/config.capnp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using Workerd = import "/workerd/workerd.capnp";

const config :Workerd.Config = (
services = [
(name = "main", worker = .mainWorker),
],

sockets = [
# Serve HTTP on port 8080.
( name = "http",
address = "*:8080",
http = (),
service = "main"
),
]
);

const mainWorker :Workerd.Worker = (
serviceWorkerScript = embed "bundle.js",
compatibilityDate = "2023-02-28",
# Learn more about compatibility dates at:
# https://developers.cloudflare.com/workers/platform/compatibility-dates/
);
19 changes: 19 additions & 0 deletions test-suite/js-test-app/dist/wasmer.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "wasmer-tests/winterjs-integration-test"
version = "0.1.0"
description = "wasmer-tests/winterjs-integration-test js worker"

[dependencies]
"wasmer/winter" = "*"

[fs]
"." = "."

[[command]]
name = "script"
module = "wasmer/winter:wasmer-winter"
runner = "https://webc.org/runner/wasi"

[command.annotations.wasi]
env = ["JS_PATH=/bundle.js"]
main-args = ["/bundle.js"]

0 comments on commit 6cce15f

Please sign in to comment.