fix: update test-wasm task to dynamically set PATH for WebAssembly tests
Some checks failed
Bearer / scan (push) Failing after 44s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 52s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 40s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 36s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 34s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 43s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 41s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 39s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 38s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 38s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 38s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 36s
Go Build Multi-Platform / build (wasm, js) (push) Successful in 35s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m15s
TinyGo Build / tinygo-build (tinygo-build, tinygo-default, reticulum-go-tinygo, ) (pull_request) Failing after 1m22s
TinyGo Build / tinygo-build (tinygo-wasm, tinygo-wasm, reticulum-go.wasm, wasm) (pull_request) Failing after 1m20s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 2m6s
Go Revive Lint / lint (push) Successful in 1m6s
Run Gosec / tests (push) Successful in 1m35s
Go Build Multi-Platform / Create Release (push) Has been skipped

This commit is contained in:
2025-12-30 19:28:01 -06:00
parent 4ea1fd1f28
commit 88083be84e

View File

@@ -173,12 +173,14 @@ tasks:
test-wasm: test-wasm:
desc: Run WebAssembly tests using Node.js desc: Run WebAssembly tests using Node.js
vars:
WASM_BIN_PATH:
sh: pwd
env: env:
GOOS: js GOOS: js
GOARCH: wasm GOARCH: wasm
PATH: '{{.PATH}}:{{.PWD}}/misc/wasm'
cmds: cmds:
- '{{.GOCMD}} test -v ./pkg/wasm/ ./cmd/reticulum-wasm/' - PATH="$PATH:{{.WASM_BIN_PATH}}/misc/wasm" {{.GOCMD}} test -v ./pkg/wasm/ ./cmd/reticulum-wasm/
build-wasm: build-wasm:
desc: Build WebAssembly binary with standard Go compiler desc: Build WebAssembly binary with standard Go compiler