Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update Makefile and integration tests probably side-effect from … #7

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ EXAMPLES_DIR = examples

.PHONY: build-examples
build-examples: generate
build-examples: $(EXAMPLES_DIR)/http-tinygo-outbound-http/outbound-http-to-same-app/main.wasm
build-examples: $(EXAMPLES_DIR)/http-tinygo-outbound-http/tinygo-hello/main.wasm
build-examples: $(EXAMPLES_DIR)/http-tinygo/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-outbound-redis/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-redis/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-key-value/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-sqlite/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-llm/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-outbound-mysql/main.wasm
build-examples: $(EXAMPLES_DIR)/tinygo-outbound-pg/main.wasm
build-examples: $(EXAMPLES_DIR)/variables-tinygo/main.wasm
build-examples: $(EXAMPLES_DIR)/http/main.wasm
build-examples: $(EXAMPLES_DIR)/http-outbound/hello/main.wasm
build-examples: $(EXAMPLES_DIR)/http-outbound/http-to-same-app/main.wasm
build-examples: $(EXAMPLES_DIR)/http-router/main.wasm
build-examples: $(EXAMPLES_DIR)/key-value/main.wasm
build-examples: $(EXAMPLES_DIR)/llm/main.wasm
build-examples: $(EXAMPLES_DIR)/mysql-outbound/main.wasm
build-examples: $(EXAMPLES_DIR)/pg-outbound/main.wasm
build-examples: $(EXAMPLES_DIR)/redis/main.wasm
build-examples: $(EXAMPLES_DIR)/redis-outbound/main.wasm
build-examples: $(EXAMPLES_DIR)/sqlite/main.wasm
build-examples: $(EXAMPLES_DIR)/variables/main.wasm

$(EXAMPLES_DIR)/%/main.wasm: $(EXAMPLES_DIR)/%/main.go
tinygo build -target=wasi -gc=leaking -no-debug -o $@ $<
Expand Down
17 changes: 11 additions & 6 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,17 @@ func TestHTTPTriger(t *testing.T) {
// TestBuildExamples ensures that the tinygo examples will build successfully.
func TestBuildExamples(t *testing.T) {
for _, example := range []string{
"examples/http-tinygo",
"examples/http-tinygo-outbound-http",
"examples/tinygo-outbound-redis",
"examples/tinygo-redis",
"examples/tinygo-key-value",
"examples/variables-tinygo",
"examples/http",
"examples/http-outbound",
"examples/http-router",
"examples/key-value",
"examples/llm",
"examples/mysql-outbound",
"examples/pg-outbound",
"examples/redis",
"examples/redis-outbound",
"examples/sqlite",
"examples/variables",
} {
build(t, example)
}
Expand Down