Repository navigation
examples/languages: price-go, a WebAssembly action built from Go - #280
Merged
Merged
Conversation
python/price in Go, its source in src/price-go/, built into actions/price-go with `itero ws build` (the built module is not committed: like an example's npm install, it is built once). The workflow price-go runs it on price.requested; it prices an order as python/price does (120 gives a total of 144 and a tax of 24). The actions guide points to it from its WebAssembly section.
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://example-wasm-price-itero-doc.erhan-gundogan.workers.dev (commit 04cbbd0)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
every_example_checks runs `itero ws check` on every example, and languages' price-go action exists only once `itero ws build` has built it from src/price-go/ (the module is not committed). The test now builds an example that has a src/ folder first, as its README says, so a real Go build runs with the tests. The tests need Go: `make test-linux` installs it in its image, and CONTRIBUTING says so.
The examples test builds the languages example's WebAssembly action with Go. Ubuntu's runner has go on its PATH; macOS's does not, and the test failed there with "needs go". actions/setup-go installs the current stable Go on macOS only.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds price-go to examples/languages: python/price in Go, built from src/price-go/ with
itero ws build, run by the workflow price-go on price.requested. The actions guide points to it.Tested for real: built and run through
ws daemon --onceon macOS and on Linux (Docker, Debian 13, arm64), three orders each, the same totals and tax as python/price.